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