/** * @see Zupal_Grid_IGrid::render_grid() * * @param Zend_View $pView * @param unknown_type $pID * @param unknown_type $pStore_ID * @param array $pColumns */ public function render_grid(Zend_View $pView, $pID, $pStore_ID, array $pColumns) { Zupal_Grid_Maker::prep_view($pView); $columns = array(); foreach ($pColumns as $k => $v) { $columns[$k] = $v; } // todo: add control buttons return Zupal_Grid_Maker::grid($pID, $pStore_ID, $columns, 'id', array('onRowClick' => 'role_row_click')); }
public function render_grid(Zend_View $pView, $pID, $pStore_ID, array $pColumns) { Zupal_Grid_Maker::prep_view($pView); $columns = array('' => array('width' => 25, 'label' => ' ', 'get' => 'content_view'), 'content_edit' => array('width' => 25, 'label' => ' ', 'get' => 'content_edit')); foreach ($pColumns as $k => $v) { $columns[$k] = $v; } $columns['content_delete'] = array('width' => 25, 'label' => ' ', 'get' => 'content_delete'); return Zupal_Grid_Maker::grid($pID, $pStore_ID, $columns); }
public function render_grid(Zend_View $pView, $pID, $pStore_ID, array $pColumns) { Zupal_Grid_Maker::prep_view($pView); $identifier = $this->table()->idField(); $cache = Zupal_Bootstrap::$registry->cache; if (!$cache->test('user_grid')) { ob_start(); Zupal_Grid_Maker::grid($pID, $pStore_ID, $pColumns, $this->table()->idField()); $cache->save(ob_get_clean(), 'user_grid'); } return $cache->load('user_grid'); }
/** * @see Zupal_Grid_IGrid::render_grid() * * @param Zend_View $pView * @param unknown_type $pID * @param unknown_type $pStore_ID * @param array $pColumns */ public function render_grid(Zend_View $pView, $pID, $pStore_ID, array $pColumns) { Zupal_Grid_Maker::prep_view($pView); $columns = array('artist_view' => array('width' => 25, 'label' => ' ', 'get' => 'artist_view'), 'artist_edit' => array('width' => 25, 'label' => ' ', 'get' => 'artist_edit')); foreach ($pColumns as $k => $v) { $columns[$k] = $v; } $columns['artist_delete'] = array('width' => 25, 'label' => ' ', 'get' => 'artist_delete'); return Zupal_Grid_Maker::grid($pID, $pStore_ID, $columns, 'node_id', array('onRowClick' => 'artist_row_click')); }