Пример #1
0
 public function getEmptyItem()
 {
     $item = parent::getEmptyItem();
     $item['type'] = $this->table;
     $item['options'] = array('display_profiler' => 0);
     return $item;
 }
Пример #2
0
 public function getEmptyItem($params = array())
 {
     $item = parent::getEmptyItem();
     if (!empty($params['template_type'])) {
         $item['template_type'] = $params['template_type'];
     } else {
         $item['template_type'] = $this->table;
     }
     $item['template_xml'] = '<data/>';
     $item['template_options']['defaultFormat'] = 'html';
     $item['template_type'] = !empty($params['type']) ? $params['type'] : $this->table;
     return $item;
 }
Пример #3
0
 public function getEmptyItem($params = array())
 {
     $item = parent::getEmptyItem();
     $item['template_xml'] = $this->ADMIN_CONF['xml_empty'];
     $item['template_type'] = !empty($params['type']) ? $params['type'] : $this->table;
     $item['template_file_name'] = null;
     $item['template_options']['defaultFormat'] = 'html';
     $item['template_options']['html_action'] = null;
     $item['template_options']['xml_action'] = 'deny';
     $item['template_options']['child_sort_method'] = null;
     $item['template_options']['child_edit_style'] = null;
     $item['template_options']['event_show_time'] = 'no';
     $item['template_options']['event_show_end'] = 'no';
     $item['template_options']['child_template'] = array('');
     $item['template_options']['child_type'] = null;
     $item['template_attributes'] = array();
     return $item;
 }
 public function getEmptyItem()
 {
     $item = parent::getEmptyItem();
     $item['page_id'] = $this->current_id;
     $item['start_time'] = array('hour' => '', 'min' => '', 'ampm' => '');
     $item['end_time'] = array('hour' => '', 'min' => '', 'ampm' => '');
     $item['ignore_end'] = 1;
     return $item;
 }
Пример #5
0
 public function getEmptyItem($params = array())
 {
     $item = parent::getEmptyItem();
     $item['module'] = $this->module;
     $item['content'] = $this->ADMIN_CONF['xml_empty'];
     if (!empty($params['template_id'])) {
         $item['template_id'] = $params['template_id'];
     }
     if ($this->input->get_post('template_id')) {
         $item['template_id'] = $this->input->get_post('template_id');
     }
     $item['options']['include_sitemap'] = 1;
     if (!empty($params['type'])) {
         $item['type'] = $params['type'];
     }
     if (!empty($params['title'])) {
         // Title supplied. Lets generate a file name for speedier entry
         $item['title'] = $params['title'];
         $item['file_name'] = strtolower(preg_replace("/[^a-z\\d]/i", "", $params['title']));
     }
     if (!empty($params['parent_id'])) {
         // Get Parent
         $parent = $this->first()->getById($params['parent_id']);
         $item['parent_id'] = $params['parent_id'];
         $item['parent_path'] = rtrim($parent['path'], '/') . '/';
     }
     return $item;
 }