Example #1
0
 protected function initialize()
 {
     // Table language keys
     $this->getLanguage()->addKeys(array('VIEW_' . $this->table->plural . '_TITLE' => $this->table->plural, 'VIEW_' . $this->table->singular . '_TITLE' => $this->table->singular, 'FIELD_' . $this->table->pk . '_LABEL' => ucfirst($this->table->pk), 'FIELD_' . $this->table->pk . '_DESC' => ucfirst($this->table->pk), 'FIELD_' . $this->table->pk . '_ORDERING_ASC' => JText::sprintf('COM_JDEVELOPER_ORDER_ASC', ucfirst($this->table->pk)), 'FIELD_' . $this->table->pk . '_ORDERING_DESC' => JText::sprintf('COM_JDEVELOPER_ORDER_DESC', ucfirst($this->table->pk))), $this->table->name);
     // Submenu language keys
     $this->getLanguage()->addKeys(array('SUBMENU_' . $this->table->name => $this->table->plural), "", true);
     // Fields language keys
     foreach ($this->fields as $field) {
         $pfx = $this->table->name . '_FIELD_' . $field->name;
         $this->getLanguage()->addKeys(array("LABEL" => ucfirst($field->name), "DESC" => ucfirst($field->description), "ORDERING_ASC" => JText::sprintf('COM_JDEVELOPER_ORDER_ASC', ucfirst($field->name)), "ORDERING_DESC" => JText::sprintf('COM_JDEVELOPER_ORDER_DESC', ucfirst($field->name)), "KEEP" => JText::sprintf('COM_JDEVELOPER_KEEP_VALUE', ucfirst($field->name)), "FILTER" => '- Select ' . ucfirst($field->name) . ' -'), $pfx);
         foreach ($field->options as $key => $option) {
             $this->getLanguage()->addKeys(array("OPTION_" . strtoupper($key) => $option), $pfx);
         }
     }
     // Relation language keys
     if (isset($this->table->params["relations"])) {
         foreach ($this->table->params["relations"] as $relation) {
             $table = $this->getModel("Table")->getItem($relation);
             $pfx = $this->table->name . '_FIELD_' . $table->singular;
             $this->getLanguage()->addKeys(array("LABEL" => ucfirst($table->singular), "DESC" => ucfirst($table->singular), "ORDERING_ASC" => JText::sprintf('COM_JDEVELOPER_ORDER_ASC', ucfirst($table->singular)), "ORDERING_DESC" => JText::sprintf('COM_JDEVELOPER_ORDER_DESC', ucfirst($table->singular)), "KEEP" => JText::sprintf('COM_JDEVELOPER_KEEP_VALUE', ucfirst($table->singular)), "FILTER" => '- Select ' . ucfirst($table->singular) . ' -'), $pfx);
         }
     }
     // System translations
     $this->getLanguage("sys")->addKeys(array($this->table->plural => $this->table->plural, $this->table->singular => $this->table->singular), "", false);
     return parent::initialize();
 }
Example #2
0
 /**
  * @see JDeveloperCreateTable::initialize()
  */
 protected function initialize()
 {
     $model_table = $this->getModel("Table");
     // Get param item
     $this->item_params = $model_table->getParamsFormItem($this->table->id);
     $this->item_images = $model_table->getImagesFormItem($this->table->id);
     // Initialise template
     $this->template->addPlaceHolders(array("fields" => $this->fields(), "relations" => $this->relations(), "form_fields" => $this->getFormFields(), "form" => $this->getForm($this->table->form_id)));
     return parent::initialize();
 }
Example #3
0
 protected function initialize()
 {
     $this->template->addPlaceHolders(array('getItem' => $this->_getItem()));
     return parent::initialize();
 }
Example #4
0
 protected function initialize()
 {
     $this->template->addPlaceHolders(array('filters' => $this->filters(), 'relations' => $this->relations()));
     return parent::initialize();
 }
Example #5
0
 protected function initialize()
 {
     $this->template->addPlaceholders(array('pk' => $this->table->pk, 'relations' => $this->relations(), 'sql' => $this->sql(), 'table_db' => $this->table->dbname));
     return parent::initialize();
 }
Example #6
0
 protected function initialize()
 {
     $this->template->addPlaceHolders(array('filter_fields' => $this->filterFields(), 'filterby' => $this->filterBy(), 'relations' => $this->relations(), 'setstates' => $this->setStates(), 'where_clause' => $this->search()));
     $this->template->addAreas(array('catidORaccess' => (bool) $this->table->jfields['catid'] || (bool) $this->table->jfields['access']));
     return parent::initialize();
 }
 protected function initialize()
 {
     $name = strtoupper($this->component->name);
     $this->addLanguageKeys(array("COM_" . $name . "_CATEGORIES_VIEW_DEFAULT_TITLE", "COM_" . $name . "_CATEGORIES_VIEW_DEFAULT_DESC"), "sys");
     return parent::initialize();
 }
 protected function initialize()
 {
     $this->template->addPlaceHolders(array('table_body' => $this->tableBody(), 'table_head' => $this->tableHead()));
     return parent::initialize();
 }
 protected function initialize()
 {
     $this->template->addPlaceHolders(array('fieldboxes' => $this->fieldboxes()));
     return parent::initialize();
 }
Example #10
0
 protected function initialize()
 {
     $this->template->addAreas(array('feed' => (bool) $this->table->params['frontend_feed']));
     return parent::initialize();
 }
Example #11
0
 protected function initialize()
 {
     $this->template->addPlaceHolders(array('ordering' => !empty($table['ordering']) ? "'ordering' => JText::_('JGRID_HEADING_ORDERING')," . PHP_EOL : "", 'sort_fields' => $this->sortFields()));
     $this->template->addPlaceHolders(array('table' => $this->table->name), true);
     return parent::initialize();
 }
 protected function initialize()
 {
     $this->template->addPlaceHolders(array('tablebody' => $this->tablebody()));
     $this->template->addPlaceHolders(array('mainfield' => $this->fields[0]->name), true);
     return parent::initialize();
 }
 protected function initialize()
 {
     $name = strtoupper($this->component->name) . "_" . strtoupper($this->table->name);
     $this->addLanguageKeys(array("COM_" . $name . "_VIEW_ITEM_TITLE", "COM_" . $name . "_VIEW_ITEM_DESC"), "sys");
     return parent::initialize();
 }