Exemplo n.º 1
0
 /**
  * (non-PHPdoc)
  * @see \library\BaseModel::getElementsRender()
  */
 public function getElementsRender()
 {
     $output = array('field_id' => array('__tid__' => 'main', 'type' => 'hidden', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FIELD_ID_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FIELD_ID_HINT')), 'field_name' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FIELD_NAME_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FIELD_NAME_HINT'), 'required' => true), 'column_length' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_COLUMN_LENGTH_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_COLUMN_LENGTH_HINT')), 'column_auto_increment' => array('__tid__' => 'main', 'type' => 'switch', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_COLUMN_AUTO_INCREMENT_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_COLUMN_AUTO_INCREMENT_HINT'), 'options' => DataFields::getColumnAutoIncrementEnum(), 'value' => DataFields::COLUMN_AUTO_INCREMENT_N), 'column_unsigned' => array('__tid__' => 'main', 'type' => 'switch', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_COLUMN_UNSIGNED_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_COLUMN_UNSIGNED_HINT'), 'options' => DataFields::getColumnUnsignedEnum(), 'value' => DataFields::COLUMN_UNSIGNED_N), 'column_comment' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_COLUMN_COMMENT_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_COLUMN_COMMENT_HINT'), 'required' => true), 'builder_id' => array('__tid__' => 'main', 'type' => 'hidden', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_BUILDER_ID_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_BUILDER_ID_HINT')), 'builder_name' => array('__tid__' => 'main', 'type' => 'string', 'label' => Text::_('MOD_BUILDER_BUILDERS_BUILDER_NAME_LABEL')), 'group_id' => array('__tid__' => 'main', 'type' => 'select', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_GROUP_ID_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_GROUP_ID_HINT')), 'type_id' => array('__tid__' => 'main', 'type' => 'select', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_TYPE_ID_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_TYPE_ID_HINT')), 'sort' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_SORT_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_SORT_HINT'), 'required' => true), 'html_label' => array('__tid__' => 'view', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_HTML_LABEL_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_HTML_LABEL_HINT'), 'required' => true), 'form_prompt' => array('__tid__' => 'view', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FORM_PROMPT_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FORM_PROMPT_HINT')), 'form_prompt_examples' => array('__tid__' => 'view', 'type' => 'select', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FORM_PROMPT_EXAMPLES_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FORM_PROMPT_EXAMPLES_HINT'), 'options' => DataFields::getFormPromptExamplesEnum()), 'form_required' => array('__tid__' => 'view', 'type' => 'switch', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FORM_REQUIRED_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FORM_REQUIRED_HINT'), 'options' => DataFields::getFormRequiredEnum(), 'value' => DataFields::FORM_REQUIRED_Y), 'form_modifiable' => array('__tid__' => 'view', 'type' => 'switch', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FORM_MODIFIABLE_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FORM_MODIFIABLE_HINT'), 'options' => DataFields::getFormModifiableEnum(), 'value' => DataFields::FORM_MODIFIABLE_N), 'index_show' => array('__tid__' => 'view', 'type' => 'switch', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_INDEX_SHOW_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_INDEX_SHOW_HINT'), 'options' => DataFields::getIndexShowEnum(), 'value' => DataFields::INDEX_SHOW_N), 'index_sort' => array('__tid__' => 'view', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_INDEX_SORT_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_INDEX_SORT_HINT'), 'value' => 0, 'required' => true), 'form_create_show' => array('__tid__' => 'view', 'type' => 'switch', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FORM_CREATE_SHOW_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FORM_CREATE_SHOW_HINT'), 'options' => DataFields::getFormCreateShowEnum(), 'value' => DataFields::FORM_CREATE_SHOW_N), 'form_create_sort' => array('__tid__' => 'view', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FORM_CREATE_SORT_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FORM_CREATE_SORT_HINT'), 'value' => 0, 'required' => true), 'form_modify_show' => array('__tid__' => 'view', 'type' => 'switch', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FORM_MODIFY_SHOW_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FORM_MODIFY_SHOW_HINT'), 'options' => DataFields::getFormModifyShowEnum(), 'value' => DataFields::FORM_MODIFY_SHOW_N), 'form_modify_sort' => array('__tid__' => 'view', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FORM_MODIFY_SORT_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FORM_MODIFY_SORT_HINT'), 'value' => 0, 'required' => true), 'form_search_show' => array('__tid__' => 'view', 'type' => 'switch', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FORM_SEARCH_SHOW_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FORM_SEARCH_SHOW_HINT'), 'options' => DataFields::getFormSearchShowEnum(), 'value' => DataFields::FORM_SEARCH_SHOW_N), 'form_search_sort' => array('__tid__' => 'view', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FORM_SEARCH_SORT_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FORM_SEARCH_SORT_HINT'), 'value' => 0, 'required' => true), 'builder_field_validators' => array('label' => Text::_('MOD_BUILDER_URLS_VALIDATORS_INDEX')));
     return $output;
 }