Show
Ignore:
Timestamp:
02/05/2008 08:49:08 AM (11 months ago)
Author:
Shadowhand
Message:

Added comments for Forge and Form_Input (other files don't need comments, they are all extensions), and set properties.

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  
    11<?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 */ 
    312class Form_Checkbox_Core extends Form_Input { 
    413 
     
    2231 
    2332                return parent::__get($key); 
    24         } 
    25  
    26         public function label($val = NULL) 
    27         { 
    28                 if ($val === NULL) 
    29                 { 
    30                         return ''; 
    31                 } 
    32                 else 
    33                 { 
    34                         $this->data['label'] = ($val === TRUE) ? ucwords(inflector::humanize($this->name)) : $val; 
    35                         return $this; 
    36                 } 
    3733        } 
    3834