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


PHP CCodeModel類代碼示例

本文整理匯總了PHP中CCodeModel的典型用法代碼示例。如果您正苦於以下問題:PHP CCodeModel類的具體用法?PHP CCodeModel怎麽用?PHP CCodeModel使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


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

示例1: attributeLabels

 /**
  * (non-PHPdoc)
  * @see CCodeModel::attributeLabels()
  */
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('workflowPath' => 'Workflow Path', 'workflowName' => 'Workflow Name', 'yedfile_upload' => 'yEd Workflow File', 'enableI8N' => 'Enable Internationalisation'));
 }
開發者ID:honglei619,項目名稱:simpleWorkflow,代碼行數:8,代碼來源:SimpleWorkflowCode.php

示例2: init

 public function init()
 {
     if (Yii::app()->db === null) {
         throw new CHttpException(500, 'An active "db" connection is required to run this generator.');
     }
     parent::init();
 }
開發者ID:israelCanul,項目名稱:Bonanza_V2,代碼行數:7,代碼來源:CrudCode.php

示例3: attributeLabels

 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array(
         'baseClass'=>'Base Class',
         'className'=>'Class Name of the Application',
         'scriptPath'=>'Script Path',
     ));
 }
開發者ID:rapbore,項目名稱:comar,代碼行數:8,代碼來源:ApplicationCode.php

示例4: init

 public function init()
 {
     if (Yii::app()->{$this->connectionId} === null) {
         throw new CHttpException(500, 'A valid database connection is required to run this generator.');
     }
     $this->tablePrefix = Yii::app()->{$this->connectionId}->tablePrefix;
     parent::init();
 }
開發者ID:42point,項目名稱:Vinum,代碼行數:8,代碼來源:ModelCode.php

示例5: attributeLabels

 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array(
         'baseClass'=>'Base Class',
         'className'=>'Console Command Class Name',
         'scriptPath'=>'Script Path',            
     ));
 }
開發者ID:rapbore,項目名稱:comar,代碼行數:8,代碼來源:CommandCode.php

示例6: attributeLabels

 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('baseClass' => 'Base Class', 'className' => 'Action ID', 'scriptPath' => 'Script Path'));
 }
開發者ID:nicosierra,項目名稱:DarwinEd,代碼行數:4,代碼來源:ActionCode.php

示例7: attributeLabels

 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('migrateName' => 'Migrate Class Name', 'code' => 'SQL', 'clearCache' => 'Flush cache', 'clearAssets' => 'Clear assets'));
 }
開發者ID:RSol,項目名稱:yii_gii_migrate,代碼行數:4,代碼來源:migrateCode.php

示例8: rules

 public function rules()
 {
     return array_merge(parent::rules(), array(array('widgetName, widgetClass', 'required'), array('assets, coreJquery, coreJqueryUi, scripts', 'safe')));
 }
開發者ID:zainengineer,項目名稱:yii-dressing,代碼行數:4,代碼來源:WidgetCode.php

示例9: attributeLabels

 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('moduleID' => 'Module ID'));
 }
開發者ID:conghua1013,項目名稱:Yii-Bootstrap-Admin,代碼行數:4,代碼來源:ModuleCode.php

示例10: attributeLabels

 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('migrateName' => 'Migrate Class Name', 'code' => 'SQL', 'alreadyAppliedCode' => 'Check if applied (if returns >= 1 records - mark as applied', 'clearCache' => 'Flush cache', 'clearAssets' => 'Clear assets'));
 }
開發者ID:voronenko,項目名稱:yii_gii_migrate,代碼行數:4,代碼來源:MigrateCode.php

示例11: rules

 public function rules()
 {
     return array_merge(parent::rules(), array(array('baseClass, widgetClass, widgetPath', 'filter', 'filter' => 'trim'), array('baseClass, widgetClass, widgetPath', 'required'), array('widgetPath', 'match', 'pattern' => '/^(\\w+[\\w\\.]*|\\*?|\\w+\\.\\*)$/', 'message' => '{attribute} should only contain word characters, dots, and an optional ending asterisk.'), array('widgetClass, baseClass', 'match', 'pattern' => '/^[a-zA-Z_]\\w*$/', 'message' => '{attribute} should only contain word characters.'), array('widgetPath', 'validateWidgetPath', 'skipOnError' => true), array('baseClass, widgetClass', 'validateReservedWord', 'skipOnError' => true), array('baseClass', 'validateBaseClass', 'skipOnError' => true), array('baseClass', 'sticky')));
 }
開發者ID:kot-ezhva,項目名稱:ygin,代碼行數:4,代碼來源:YginWidgetCode.php

示例12: attributeLabels

 /**
  * Attribute labels
  *
  * @return array
  */
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('tableName' => 'Table Name', 'migrationPath' => 'Migration Path', 'modelClass' => 'Class Name', 'modelPath' => 'Model Path', 'baseClass' => 'Base Class', 'controllerClass' => 'Controller Name', 'baseControllerClass' => 'Base Controller Class'));
 }
開發者ID:code-4-england,項目名稱:OpenEyes,代碼行數:9,代碼來源:ElementCode.php

示例13: attributeLabels

 /**
  * @inheritdoc
  */
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('modelPath' => 'Model Path', 'modelClass' => 'Model Class', 'useMixin' => 'Use @mixin tag for behaviors'));
 }
開發者ID:cornernote,項目名稱:gii-modeldoc-generator,代碼行數:7,代碼來源:ModelDocCode.php

示例14: attributeLabels

 /**
  * @return array
  */
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('modelPath' => 'Model Path', 'modelClass' => 'Model Class'));
 }
開發者ID:cornernote,項目名稱:yii-embed-wordpress,代碼行數:7,代碼來源:ModelDocCode.php

示例15: attributeLabels

 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('modelPath' => 'Models Path', 'fixturePath' => 'Fixtures Path'));
 }
開發者ID:asdmundt,項目名稱:templateYiiApp,代碼行數:4,代碼來源:FixtureCode.php


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