コード例 #1
0
 public static function getCommonColumns()
 {
     $options = DB::select('id', 'name')->from('main_items')->order_by('name')->execute()->as_array('id', 'name');
     return ['main_item_id' => ['label' => 'Категория', 'type' => 'select', 'options' => $options], 'name' => ['label' => 'Название меню', 'type' => 'text'], 'content' => ['label' => 'Содержание', 'type' => 'editor'], 'title' => ['label' => 'title', 'type' => 'textarea'], 'keywords' => ['label' => 'keywords', 'type' => 'textarea'], 'description' => ['label' => 'description', 'type' => 'textarea'], 'module' => ['label' => 'Модуль', 'type' => 'select', 'options' => Modules::getModulesKeys()], 'show_caption' => ['label' => 'Показывать заголовок', 'type' => 'bool'], 'visible' => ['label' => 'Видимость', 'type' => 'bool']];
 }
コード例 #2
0
ファイル: MainItems.php プロジェクト: s4urp8n/kohana-admin
 public static function getCommonColumns()
 {
     return ['name' => ['label' => 'Категория', 'type' => 'text'], 'content' => ['label' => 'Содержание', 'type' => 'editor'], 'module' => ['label' => 'Модуль', 'type' => 'select', 'options' => Modules::getModulesKeys()], 'title' => ['label' => 'title', 'type' => 'textarea'], 'keywords' => ['label' => 'keywords', 'type' => 'textarea'], 'description' => ['label' => 'description', 'type' => 'textarea'], 'go_child' => ['label' => 'Переходить на первую дочернюю категорию', 'type' => 'bool'], 'show_caption' => ['label' => 'Показывать заголовок', 'type' => 'bool'], 'visible' => ['label' => 'Видимость', 'type' => 'bool']];
 }