Welcome to Paster, Anonymous Friend!
Added by Form_Dateselect_Part on 2008-03-12 15:26:04 Download/View
  1. <?php defined('SYSPATH') or die('No direct script access.');
  2. /**
  3.  * FORGE dateselect input library.
  4.  *
  5.  * $Id: Form_Dateselect.php 1923 2008-02-05 14:49:08Z Shadowhand $
  6.  *
  7.  * @package    Forge
  8.  * @author     Kohana Team
  9.  * @copyright  (c) 2007-2008 Kohana Team
  10.  * @license    http://kohanaphp.com/license.html
  11.  */
  12. class Form_Dateselect_Part extends Form_Dateselect_Core {
  13.         public function remove($part)
  14.         {
  15.                 if(is_array($part))
  16.                 {
  17.                         foreach($part as $parts){
  18.                                 if (isset($this->parts[$parts]))
  19.                                 unset($this->parts[$parts]);
  20.                         }
  21.                 } else {
  22.                         if (isset($this->parts[$part]))
  23.                         unset($this->parts[$part]);
  24.                 }
  25.                 return $this;
  26.         }
  27.        
  28.         public function parts($part = array())
  29.         {       
  30.                 $this->parts = $part;
  31.                 return $this;
  32.         }
  33. } // End Form Dateselect
  34.