[ Index ] |
|
Code source de LifeType 1.2.4 |
1 <?php 2 3 lt_include( PLOG_CLASS_PATH."class/dao/customfields/customfieldvalue.class.php" ); 4 5 /** 6 * offers methods for dealing with checkboxes 7 * 8 * \ingroup DAO 9 */ 10 class CustomFieldCheckboxValue extends CustomFieldValue 11 { 12 /** 13 * constructor 14 * 15 * @see CustomFieldValue 16 */ 17 function CustomFieldCheckboxValue( $fieldId, $fieldValue, $articleId, $blogId, $id = -1 ) 18 { 19 $this->CustomFieldValue( $fieldId, $fieldValue, $articleId, $blogId, $id ); 20 21 $this->setValue( $fieldValue ); 22 } 23 24 /** 25 * returns whether the checkbox is enabled or not 26 * 27 * @return boolean 28 */ 29 function isChecked() 30 { 31 return( $this->getValue() == "1" ); 32 } 33 } 34 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 21:04:15 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |