當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CMS::getModules方法代碼示例

本文整理匯總了PHP中CMS::getModules方法的典型用法代碼示例。如果您正苦於以下問題:PHP CMS::getModules方法的具體用法?PHP CMS::getModules怎麽用?PHP CMS::getModules使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CMS的用法示例。


在下文中一共展示了CMS::getModules方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getForm

 public function getForm()
 {
     Yii::app()->controller->widget('ext.tinymce.TinymceWidget');
     return new CMSForm(array('id' => __CLASS__, 'showErrorSummary' => true, 'attributes' => array('class' => 'form-horizontal'), 'elements' => array('name' => array('type' => 'text', 'id' => 'title'), 'seo_alias' => array('type' => 'text', 'id' => 'alias', 'visible' => !Yii::app()->settings->get('core', 'translate_object_url')), 'parent_id' => array('type' => 'dropdownlist', 'items' => Html::listData(CategoriesModel::model()->parent()->findAll(), 'id', 'name'), 'empty' => '— Выбать —'), 'module' => array('type' => 'dropdownlist', 'items' => CMS::getModules()), 'text' => array('type' => 'textarea', 'class' => 'editor'), 'date_update' => array('type' => 'text', 'value' => date('Y-m-d H:i:s'))), 'buttons' => array('submit' => array('type' => 'submit', 'class' => 'btn btn-success', 'label' => Yii::t('app', 'SAVE')))), $this);
 }
開發者ID:buildshop,項目名稱:bs-common,代碼行數:5,代碼來源:CategoriesModel.php

示例2: getForm

 public function getForm()
 {
     Yii::app()->controller->widget('ext.tinymce.TinymceWidget');
     return new CMSForm(array('showErrorSummary' => true, 'attributes' => array('class' => 'form-horizontal', 'id' => __CLASS__), 'elements' => array('name' => array('type' => 'text'), 'content' => array('type' => 'textarea', 'class' => 'editor'), 'widget' => array('type' => 'dropdownlist', 'items' => Yii::app()->widgets->getData(), 'empty' => Yii::t('app', 'EMPTY_DROPDOWNLIST', 1), 'hint' => $this->t('HINT_WIDGET')), '<div id="payment_configuration"></div>', 'modules' => array('type' => 'checkboxlist', 'items' => CMS::getModules()), 'access' => array('type' => 'dropdownlist', 'items' => Yii::app()->access->dataList(), 'empty' => Yii::t('app', 'EMPTY_DROPDOWNLIST', 1)), 'position' => array('type' => 'dropdownlist', 'items' => $this->allPositions, 'empty' => Yii::t('app', 'EMPTY_DROPDOWNLIST', 1)), 'expire' => array('type' => 'text'), 'action' => array('type' => 'dropdownlist', 'empty' => Yii::t('app', 'EMPTY_DROPDOWNLIST', 1), 'items' => array('update' => Yii::t('app', 'OFF', 1), 'delete' => Yii::t('app', 'DELETE')), 'hint' => $this->t('HINT_ACTION'))), 'buttons' => array('submit' => array('type' => 'submit', 'class' => 'btn btn-success', 'label' => Yii::t('app', 'SAVE')))), $this);
 }
開發者ID:buildshop,項目名稱:bs-common,代碼行數:5,代碼來源:BlocksModel.php


注:本文中的CMS::getModules方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。