customfieldcheckboxvalue.class.php
来自「一个用PHP编写的」· PHP 代码 · 共 35 行
PHP
35 行
<?php lt_include( PLOG_CLASS_PATH."class/dao/customfields/customfieldvalue.class.php" ); /** * offers methods for dealing with checkboxes * * \ingroup DAO */ class CustomFieldCheckboxValue extends CustomFieldValue { /** * constructor * * @see CustomFieldValue */ function CustomFieldCheckboxValue( $fieldId, $fieldValue, $articleId, $blogId, $id = -1 ) { $this->CustomFieldValue( $fieldId, $fieldValue, $articleId, $blogId, $id ); $this->setValue( $fieldValue ); } /** * returns whether the checkbox is enabled or not * * @return boolean */ function isChecked() { return( $this->getValue() == "1" ); } }?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?