本文整理汇总了PHP中Grid::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Grid::__construct方法的具体用法?PHP Grid::__construct怎么用?PHP Grid::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Grid
的用法示例。
在下文中一共展示了Grid::__construct方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
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;
}
示例2: __construct
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);
}
示例3: __construct
/**
* @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()));
}
}
}
示例4: __construct
/**
* Class init.
*
* @param array $options
*/
public function __construct($options = array())
{
parent::__construct($options);
$this->setColumns(array(static::COL_KEY, static::COL_VALUE));
}
示例5: __construct
/**
* Конструктор класса
*
* @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');
}