function init() { parent::init(); $this->addColumn('text', 'content', 'Information:'); $this->safe_html_output = false; $this->setStaticSource($this->api->info_messages); }
function init() { parent::init(); $this->config = Config::getInstance(); $this->addColumn('message'); $this->addFormatter('message', 'wrap'); }
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'); }
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(); }
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); } }
function init() { parent::init(); $this->addPaginator(8); $this->add('QuickSearch', null, 'quick_search')->removeClass('float-right')->useWith($this)->useFields(array('name')); }
function init() { parent::init(); $this->addColumn('text', 'model_id'); $this->addColumn('text', 'status'); }