Exemple #1
0
 /**
  * @see	JDeveloperCreate
  */
 protected function getDefaultPlaceholders()
 {
     $placeholders = array();
     return array_merge($placeholders, parent::getDefaultPlaceholders());
 }
Exemple #2
0
 /**
  * @see	JDeveloperCreate
  */
 protected function getDefaultPlaceholders()
 {
     $placeholders = array('header' => self::$templateHeader, 'name' => $this->item->name);
     return array_merge($placeholders, parent::getDefaultPlaceholders());
 }
Exemple #3
0
 /**
  * @see	JDeveloperCreate
  */
 protected function getDefaultPlaceholders()
 {
     $placeholders = array('header' => self::$templateHeader, 'component' => $this->component->name, 'mainfield' => isset($this->fields[0]) ? $this->fields[0]->name : $this->table->pk, 'table' => $this->table->name, 'table_db' => $this->table->dbname, 'plural' => $this->table->plural, 'pk' => $this->table->pk, 'singular' => $this->table->singular);
     if (!empty($this->fields)) {
         $placeholders["textfield"] = $this->fields[0]->name;
         foreach ($this->fields as $field) {
             if ($field->type == "editor" || $field->type == "textarea") {
                 $placeholders["textfield"] = $field->name;
                 break;
             }
         }
     }
     return array_merge($placeholders, parent::getDefaultPlaceholders());
 }
Exemple #4
0
 /**
  * @see	JDeveloperCreate
  */
 protected function getDefaultPlaceholders()
 {
     $placeholders = array('component' => $this->component->name, 'defaultview' => isset($this->tables[0]) ? $this->tables[0]->plural : $this->component->name, 'header' => self::$templateHeader);
     return array_merge($placeholders, parent::getDefaultPlaceholders());
 }
Exemple #5
0
 /**
  * @see	JDeveloperCreate
  */
 protected function getDefaultPlaceholders()
 {
     $pk = "id";
     if (!empty($this->item->table)) {
         $columns = JFactory::getDbo()->getTableColumns("#__" . $this->item->table, false);
         $pk = "id";
         foreach ($columns as $column) {
             if ($column->Key == "PRI") {
                 $pk = $column->Field;
             }
         }
     }
     $placeholders = array('header' => self::$templateHeader, 'module' => $this->item->name, 'pk' => $pk, 'table_db' => $this->item->table, 'version' => $this->item->version);
     return array_merge($placeholders, parent::getDefaultPlaceholders());
 }