integerconfighandler.class.php
来自「ProjectPier 源码 很好的项目管理程序」· PHP 代码 · 共 44 行
PHP
44 行
<?php /** * Class that handles integer config values * * @version 1.0 * @http://www.projectpier.org/ */ class IntegerConfigHandler extends ConfigHandler { /** * Render form control * * @param string $control_name * @return string */ function render($control_name) { return text_field($control_name, $this->getValue(), array('class' => 'short')); } // render /** * Conver $value to raw value * * @param mixed $value * @return null */ protected function phpToRaw($value) { return (string) $value; } // phpToRaw /** * Convert raw value to php * * @param string $value * @return mixed */ protected function rawToPhp($value) { return (integer) $value; } // rawToPhp } // IntegerConfigHandler?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?