コード例 #1
0
ファイル: Controller.php プロジェクト: bearlord/kantphp2
 /**
  * Construct
  */
 public function __construct()
 {
     parent::__construct();
     $this->initView();
     if (method_exists($this, 'initialize')) {
         $this->initialize();
     }
 }
コード例 #2
0
ファイル: View.php プロジェクト: bearlord/kantphp2
 public function __construct()
 {
     parent::__construct();
     $this->dispatchInfo = KantRegistry::get('dispatchInfo');
 }
コード例 #3
0
ファイル: Model.php プロジェクト: bearlord/kantphp2
 /**
  * Sets a component property to be null.
  * This method overrides the parent implementation by clearing
  * the specified attribute value.
  * @param string $name the property name or the event name
  */
 public function __unset($name)
 {
     if ($this->hasAttribute($name)) {
         unset($this->_attributes[$name]);
     } elseif (array_key_exists($name, $this->_related)) {
         unset($this->_related[$name]);
     } elseif ($this->getRelation($name, false) === null) {
         parent::__unset($name);
     }
 }