本文整理汇总了PHP中Grid::init方法的典型用法代码示例。如果您正苦于以下问题:PHP Grid::init方法的具体用法?PHP Grid::init怎么用?PHP Grid::init使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Grid
的用法示例。
在下文中一共展示了Grid::init方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: init
function init()
{
parent::init();
$this->addColumn('text', 'content', 'Information:');
$this->safe_html_output = false;
$this->setStaticSource($this->api->info_messages);
}
示例2: init
function init()
{
parent::init();
$this->config = Config::getInstance();
$this->addColumn('message');
$this->addFormatter('message', 'wrap');
}
示例3: init
function init()
{
parent::init();
$gr = $this;
$gr->setModel($this->api->auth->opauth->model, array('image', 'provider', 'token'))->addCondition('user_id', $this->api->auth->model->id);
$gr->addButton('Connect with Github')->js('click', $this->api->auth->opauth->getJSAuth('github'));
$this->addColumn('delete', 'delete');
$this->addFormatter('image', 'thumb');
}
示例4: init
function init()
{
parent::init();
$p = $this->add('Paginator', null, 'paginator');
$f = $this->addQuickSearch(array('name', 'email'));
if ($this->api->getUserLevel() > 9) {
$f = $f->addField('dropdown', 'domain', '');
$f->owner->search_field->template->trySet('row_class', 'span6');
$f->owner->add('Order')->move($f, 'first')->later();
$f->setModel('Domain');
$f->template->trySet('row_class', 'span6');
}
//if($this->api->getUserLevel() < 99)$this->setDomains();
}
示例5: init
function init()
{
parent::init();
//restoring selected
//$this->addHook('post-submit', array($this, 'getSelected'), 1);
$this->getSelected();
if ($_GET['save_selected']) {
$r = explode(',', $_GET['selected']);
$sel = array();
foreach ($r as $i => $v) {
list($id, $selected) = explode(':', $v);
$sel[$id] = $selected;
}
$this->processSelection($sel);
}
}
示例6: init
function init()
{
parent::init();
$this->addPaginator(8);
$this->add('QuickSearch', null, 'quick_search')->removeClass('float-right')->useWith($this)->useFields(array('name'));
}
示例7: init
function init()
{
parent::init();
$this->addColumn('text', 'model_id');
$this->addColumn('text', 'status');
}