Changeset 1923 for trunk/modules/forge/libraries/Form_Checkbox.php
- Timestamp:
- 02/05/2008 08:49:08 AM (11 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/forge/libraries/Form_Checkbox.php
- Property copyright changed from Copyright (c) 2007 Kohana Team to Copyright (c) 2007-2008 Kohana Team
r1594 r1923 1 1 <?php defined('SYSPATH') or die('No direct script access.'); 2 2 /** 3 * FORGE checkbox input library. 4 * 5 * $Id$ 6 * 7 * @package Forge 8 * @author Kohana Team 9 * @copyright (c) 2007-2008 Kohana Team 10 * @license http://kohanaphp.com/license.html 11 */ 3 12 class Form_Checkbox_Core extends Form_Input { 4 13 … … 22 31 23 32 return parent::__get($key); 24 }25 26 public function label($val = NULL)27 {28 if ($val === NULL)29 {30 return '';31 }32 else33 {34 $this->data['label'] = ($val === TRUE) ? ucwords(inflector::humanize($this->name)) : $val;35 return $this;36 }37 33 } 38 34
