Esempio n. 1
0
 /**
  * @param array $option
  * @param Presenter|NULL $presenter
  * @param array $data
  * @throws Grid_Exception
  */
 public function __construct($option = array(), Presenter $presenter = NULL, $data = array())
 {
     parent::__construct($option);
     if (empty($data) === FALSE) {
         $this->data = $data;
     }
     $this->presenter = $presenter;
 }
Esempio n. 2
0
 public function __construct($destination = array(), $args = array())
 {
     if (is_array($destination)) {
         parent::__construct($destination);
     } else {
         if (is_string($destination)) {
             parent::__construct();
             $this->option[self::HREF] = $destination;
             $this->option[self::PARAMS] = $args;
         }
     }
 }