Пример #1
0
 function render_edit($source)
 {
     if (!$this->_suppress_edit) {
         return parent::render_edit($source);
     }
     return false;
 }
Пример #2
0
 function validate_sort_link($sort_request)
 {
     if ($sort_request == 'gallery_name') {
         return false;
     }
     return parent::validate_sort_link($sort_request);
 }
Пример #3
0
 function render_select($source)
 {
     if (!$this->_access_permitted($source)) {
         return false;
     }
     return parent::render_select($source);
 }
Пример #4
0
 function render_subheader_format($value, $depth)
 {
     $header = parent::render_subheader_format($value, $depth);
     $ul = $this->_renderer->simple_ul('', array('id' => $this->list_id . '_' . $value, 'class' => 'nav_locations'));
     $div = $this->_renderer->div('', array('class' => 'nav_block'));
     $block_start = str_replace('</div>', '', $div) . $header . str_replace('</ul>', '', $ul);
     $output = $this->_block_end . $block_start;
     $this->_block_end = '</ul></div>';
     return $output;
 }
Пример #5
0
 function render_value($source, $column_name)
 {
     if (isset($this->_source_fields[$column_name]) && isset($this->_source_fields[$column_name]['values']) && ($lookup = $this->_source_fields[$column_name]['values']) && is_object($lookup)) {
         $data = AMP_evalLookup($lookup);
         $value = $source->getData($column_name);
         if (isset($data[$value])) {
             return trim(str_replace('&nbsp;', ' ', $data[$value]));
         }
     }
     return parent::render_value($source, $column_name);
 }