📄 floatconfighandler.class.php
字号:
<?php /** * Class that handles integer config values * * @version 1.0 * @http://www.projectpier.org/ */ class FloatConfigHandler 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 (float) $value; } // rawToPhp } // FloatConfigHandler?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -