コード例 #1
0
ファイル: CrudCode.php プロジェクト: israelCanul/Bonanza_V2
 public function init()
 {
     if (Yii::app()->db === null) {
         throw new CHttpException(500, 'An active "db" connection is required to run this generator.');
     }
     parent::init();
 }
コード例 #2
0
ファイル: ApplicationCode.php プロジェクト: rapbore/comar
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array(
         'baseClass'=>'Base Class',
         'className'=>'Class Name of the Application',
         'scriptPath'=>'Script Path',
     ));
 }
コード例 #3
0
ファイル: ModelCode.php プロジェクト: 42point/Vinum
 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();
 }
コード例 #4
0
ファイル: CommandCode.php プロジェクト: rapbore/comar
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array(
         'baseClass'=>'Base Class',
         'className'=>'Console Command Class Name',
         'scriptPath'=>'Script Path',            
     ));
 }
コード例 #5
0
ファイル: VRCode.php プロジェクト: rapbore/comar
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array(
         'baseClass'=>'Base Class',
         'className'=>'View Renderer Class Name',
         'scriptPath'=>'Script Path',            
     ));
 }
コード例 #6
0
ファイル: ActionCode.php プロジェクト: nicosierra/DarwinEd
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('baseClass' => 'Base Class', 'className' => 'Action ID', 'scriptPath' => 'Script Path'));
 }
コード例 #7
0
ファイル: MSCode.php プロジェクト: nicosierra/DarwinEd
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('baseClass' => 'Base Class', 'className' => 'Class Name of the message source', 'scriptPath' => 'Script Path'));
 }
コード例 #8
0
ファイル: migrateCode.php プロジェクト: RSol/yii_gii_migrate
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('migrateName' => 'Migrate Class Name', 'code' => 'SQL', 'clearCache' => 'Flush cache', 'clearAssets' => 'Clear assets'));
 }
コード例 #9
0
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('moduleID' => 'ID', 'name' => 'Название', 'description' => 'Описание'));
 }
コード例 #10
0
 public function rules()
 {
     return array_merge(parent::rules(), array(array('widgetName, widgetClass', 'required'), array('assets, coreJquery, coreJqueryUi, scripts', 'safe')));
 }
コード例 #11
0
ファイル: ControllerCode.php プロジェクト: omonra/blog
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('baseClass' => 'Base Class', 'controller' => 'Controller ID', 'actions' => 'Action IDs'));
 }
コード例 #12
0
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('moduleID' => 'Module ID'));
 }
コード例 #13
0
ファイル: MongoCRUDCode.php プロジェクト: niranjan2m/Voyanga
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('model' => 'Model Class', 'controller' => 'Controller ID', 'baseControllerClass' => 'Base Controller Class'));
 }
コード例 #14
0
ファイル: BlockCode.php プロジェクト: nganhtuan63/gxc-cms
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('blockName' => 'Block Name'));
 }
コード例 #15
0
 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'));
 }
コード例 #16
0
 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'));
 }
コード例 #17
0
ファイル: LayoutCode.php プロジェクト: nganhtuan63/gxc-cms
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('layoutName' => 'Layout Name'));
 }
コード例 #18
0
ファイル: YginWidgetCode.php プロジェクト: kot-ezhva/ygin
 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')));
 }
コード例 #19
0
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('enumerableName' => 'Enumerable Name', 'enumerablePath' => 'Enumerable Path', 'baseClass' => 'Base Class', 'enumerableItems' => 'Enumerable Items'));
 }
コード例 #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'));
 }
コード例 #21
0
 /**
  * (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'));
 }
コード例 #22
0
 /**
  * @inheritdoc
  */
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('modelPath' => 'Model Path', 'modelClass' => 'Model Class', 'useMixin' => 'Use @mixin tag for behaviors'));
 }
コード例 #23
0
 /**
  * @return array
  */
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('modelPath' => 'Model Path', 'modelClass' => 'Model Class'));
 }
コード例 #24
0
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('modelPath' => 'Models Path', 'fixturePath' => 'Fixtures Path'));
 }
コード例 #25
0
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('className' => 'Widget Class Name'));
 }
コード例 #26
0
ファイル: RestCode.php プロジェクト: salem-dev-acc/yiiapp
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('path' => 'route to applications'));
 }
コード例 #27
0
ファイル: ContentCode.php プロジェクト: pramana08/GXC-CMS-2
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('contentName' => 'Content Name', 'contentId' => 'Content ID'));
 }
コード例 #28
0
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('model' => 'Model Class', 'viewName' => 'View Name', 'viewPath' => 'View Path', 'scenario' => 'Scenario'));
 }
コード例 #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'));
 }