当前位置: 首页>>代码示例>>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;未经允许,请勿转载。