public function listAction() { $this->getHelper('layout')->disableLayout(); $params = $this->_getAllParams(); $configArray = $this->getConfigList(); if (is_array($configArray)) { $grid = new Core_Grid($configArray); $params = $grid->mapper($params); } $result = $this->getResultList($params); $this->view->result = $result; $this->view->params = $params; }
public function init() { $this->_columns['Program.name']['filter_options'] = array('' => '') + Model_ProgramTable::getInstance()->getList()->toKeyValueArray('id', 'name'); $query = Model_PerformanceIndicatorTable::getInstance()->createQuery('pI')->leftJoin('pI.Program as p'); $this->setAdapter(new Ext_Grid_Adapter_DoctrineQuery($query)); parent::init(); }
/** * add delete column to grid * * @return Core_Controller_Action_Crud */ public function _addDeleteColumn() { $this->_grid->setColumn('delete', array('name' => 'Delete', 'formatter' => array(new Core_Grid_Formatter_DeleteLinkFormatter(), 'deleteLinkFormatter'), 'attribs' => array('width' => '60px'))); return $this; }
public function workspaceArtefatoListAction() { # dispensa o uso do template $this->getHelper('layout')->disableLayout(); $params = $this->_getAllParams(); $configArray = $this->getConfigList(); if (is_array($configArray)) { $grid = new Core_Grid($configArray); $params = $grid->mapper($params); } $result = $this->resultListWorkspaceArtefato($params); $this->view->result = $result; $this->view->params = $params; $this->view->permissionAction = $this->_getPermissionActions(); $entArtefatoPai = $this->getService('Artefato')->find((int) $params['sqArtefatoParent']); $this->view->sqArtefatoTipoSource = $entArtefatoPai->getSqTipoArtefatoAssunto()->getSqTipoArtefato()->getSqTipoArtefato(); $this->view->isProcesso = $entArtefatoPai->isProcesso(); $this->view->arrTipoArtefato = array('DOCUMENTO' => \Core_Configuration::getSgdoceTipoArtefatoDocumento(), 'PROCESSO' => \Core_Configuration::getSgdoceTipoArtefatoProcesso()); }