• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP CCodeModel类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中CCodeModel的典型用法代码示例。如果您正苦于以下问题:PHP CCodeModel类的具体用法?PHP CCodeModel怎么用?PHP CCodeModel使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了CCodeModel类的16个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: attributeLabels

 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('className' => 'Class', 'baseClass' => 'extends', 'interfaceName' => 'implements', 'comment' => 'class-level DocBlock for your component', 'scriptPath' => 'Script Path', 'isAbstract' => 'The class is abstract.', 'codeBody' => 'Your codelines after the magic methods'));
 }
开发者ID:rusli-nasir,项目名称:smsempresayii,代码行数:4,代码来源:ClassCode.php



注:本文中的CCodeModel类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP CCol类代码示例发布时间:2022-05-23
下一篇:
PHP CClipWidget类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap