本文整理匯總了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');
}