Beispiel #1
0
 public function init()
 {
     if (Yii::app()->db === null) {
         throw new CHttpException(500, 'An active "db" connection is required to run this generator.');
     }
     parent::init();
 }
Beispiel #2
0
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array(
         'baseClass'=>'Base Class',
         'className'=>'Class Name of the Application',
         'scriptPath'=>'Script Path',
     ));
 }
Beispiel #3
0
 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();
 }
Beispiel #4
0
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array(
         'baseClass'=>'Base Class',
         'className'=>'Console Command Class Name',
         'scriptPath'=>'Script Path',            
     ));
 }
Beispiel #5
0
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array(
         'baseClass'=>'Base Class',
         'className'=>'View Renderer Class Name',
         'scriptPath'=>'Script Path',            
     ));
 }
Beispiel #6
0
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('baseClass' => 'Base Class', 'className' => 'Action ID', 'scriptPath' => 'Script Path'));
 }
Beispiel #7
0
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('baseClass' => 'Base Class', 'className' => 'Class Name of the message source', 'scriptPath' => 'Script Path'));
 }
Beispiel #8
0
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('migrateName' => 'Migrate Class Name', 'code' => 'SQL', 'clearCache' => 'Flush cache', 'clearAssets' => 'Clear assets'));
 }
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('moduleID' => 'ID', 'name' => 'Название', 'description' => 'Описание'));
 }
 public function rules()
 {
     return array_merge(parent::rules(), array(array('widgetName, widgetClass', 'required'), array('assets, coreJquery, coreJqueryUi, scripts', 'safe')));
 }
Beispiel #11
0
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('baseClass' => 'Base Class', 'controller' => 'Controller ID', 'actions' => 'Action IDs'));
 }
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('moduleID' => 'Module ID'));
 }
Beispiel #13
0
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('model' => 'Model Class', 'controller' => 'Controller ID', 'baseControllerClass' => 'Base Controller Class'));
 }
Beispiel #14
0
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('blockName' => 'Block Name'));
 }
 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'));
 }
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('baseClass' => 'Base Class', 'className' => 'Portlet Class Name', 'scriptPath' => 'Script Path', 'comment' => 'class-level DocBlock for your component'));
 }
Beispiel #17
0
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('layoutName' => 'Layout Name'));
 }
Beispiel #18
0
 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')));
 }
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('enumerableName' => 'Enumerable Name', 'enumerablePath' => 'Enumerable Path', 'baseClass' => 'Base Class', 'enumerableItems' => 'Enumerable Items'));
 }
Beispiel #20
0
 /**
  * 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'));
 }
 /**
  * (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'));
 }
 /**
  * @inheritdoc
  */
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('modelPath' => 'Model Path', 'modelClass' => 'Model Class', 'useMixin' => 'Use @mixin tag for behaviors'));
 }
 /**
  * @return array
  */
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('modelPath' => 'Model Path', 'modelClass' => 'Model Class'));
 }
Beispiel #24
0
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('modelPath' => 'Models Path', 'fixturePath' => 'Fixtures Path'));
 }
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('className' => 'Widget Class Name'));
 }
Beispiel #26
0
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('path' => 'route to applications'));
 }
Beispiel #27
0
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('contentName' => 'Content Name', 'contentId' => 'Content ID'));
 }
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('model' => 'Model Class', 'viewName' => 'View Name', 'viewPath' => 'View Path', 'scenario' => 'Scenario'));
 }
Beispiel #29
0
 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'));
 }