Exemple #1
0
 public function __construct($related, \Nette\ComponentModel\IContainer $parent = NULL, $name = NULL)
 {
     parent::__construct($parent, $name);
     $this->templateFile = 'gridTree.latte';
     $this->templateDir = __DIR__;
     $this->related = $related;
 }
 public function __construct(array $rawData)
 {
     $height = count($rawData) - 1;
     $width = strlen($rawData[0]) - 1;
     $this->corners = ["0,0", "0,{$height}", "{$width},0", "{$width},{$height}"];
     parent::__construct($rawData);
 }
 /**
  * @copydoc Grid::__construct
  */
 public function __construct($name, array $params = null)
 {
     parent::__construct($name, $params);
     if (!($this->isEditable = $this->document->isEditable()) && $this->getState() == self::DEFAULT_STATE_NAME) {
         $this->disable();
     } else {
         $this->setProperty('exttype', 'feededitor');
         if (!in_array($this->getState(), array('up', 'down')) && isset($_COOKIE[md5($this->getName())])) {
             E()->getResponse()->deleteCookie(md5($this->getName()));
         }
     }
 }
 /**
  * Class init.
  *
  * @param array  $options
  */
 public function __construct($options = array())
 {
     parent::__construct($options);
     $this->setColumns(array(static::COL_KEY, static::COL_VALUE));
 }
 /**
  * Конструктор класса
  *
  * @param string $name
  * @param string $module
  * @param array $params
  * @access public
  */
 public function __construct($name, array $params = null)
 {
     parent::__construct($name, $params);
     $this->setTableName('blog_post');
     //        $this->setOrderColumn('post_created');
 }
Exemple #6
0
 /**
  * Конструктор класса
  *
  * @param string $name
  * @param string $module
  * @param array $params
  * @access public
  */
 public function __construct($name, array $params = null)
 {
     parent::__construct($name, $params);
     $this->setTableName('blog_title');
     //        $this->setOrderColumn('blog_name');
 }