本文整理汇总了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'));
}
示例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();
}
示例3: attributeLabels
public function attributeLabels()
{
return array_merge(parent::attributeLabels(), array(
'baseClass'=>'Base Class',
'className'=>'Class Name of the Application',
'scriptPath'=>'Script Path',
));
}
示例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();
}
示例5: attributeLabels
public function attributeLabels()
{
return array_merge(parent::attributeLabels(), array(
'baseClass'=>'Base Class',
'className'=>'Console Command Class Name',
'scriptPath'=>'Script Path',
));
}
示例6: attributeLabels
public function attributeLabels()
{
return array_merge(parent::attributeLabels(), array('baseClass' => 'Base Class', 'className' => 'Action ID', 'scriptPath' => 'Script Path'));
}
示例7: attributeLabels
public function attributeLabels()
{
return array_merge(parent::attributeLabels(), array('migrateName' => 'Migrate Class Name', 'code' => 'SQL', 'clearCache' => 'Flush cache', 'clearAssets' => 'Clear assets'));
}
示例8: rules
public function rules()
{
return array_merge(parent::rules(), array(array('widgetName, widgetClass', 'required'), array('assets, coreJquery, coreJqueryUi, scripts', 'safe')));
}
示例9: attributeLabels
public function attributeLabels()
{
return array_merge(parent::attributeLabels(), array('moduleID' => 'Module ID'));
}
示例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'));
}
示例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')));
}
示例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'));
}
示例13: attributeLabels
/**
* @inheritdoc
*/
public function attributeLabels()
{
return array_merge(parent::attributeLabels(), array('modelPath' => 'Model Path', 'modelClass' => 'Model Class', 'useMixin' => 'Use @mixin tag for behaviors'));
}
示例14: attributeLabels
/**
* @return array
*/
public function attributeLabels()
{
return array_merge(parent::attributeLabels(), array('modelPath' => 'Model Path', 'modelClass' => 'Model Class'));
}
示例15: attributeLabels
public function attributeLabels()
{
return array_merge(parent::attributeLabels(), array('modelPath' => 'Models Path', 'fixturePath' => 'Fixtures Path'));
}