Example #1
0
 protected function afterConstruct()
 {
     parent::afterConstruct();
     $this->initLanguageAttribute('titles');
     //behavior method
     $this->initLanguageAttribute('descriptions');
     //behavior method
 }
Example #2
0
 /**
  *  Callback executed after construction.	 
  */
 public function afterConstruct()
 {
     parent::afterConstruct();
     // Init default quotas
     $this->crash_reports_per_group_quota = 100;
     $this->crash_report_files_disc_quota = 512;
     $this->bug_attachment_files_disc_quota = 100;
     $this->debug_info_files_disc_quota = 2048;
 }
Example #3
0
 /**
  * afterConstruct
  * Sets a default project name, timestamp and username
  */
 protected function afterConstruct()
 {
     $this->project = 'Project ' . date(Yii::app()->params['dateFormat']);
     $this->username = Yii::app()->user->id;
     $this->timestamp = date(Yii::app()->params['dateTimeFormatDB']);
     $this->total_water_demand = 0;
     $this->effective_water_demand = 0;
     $this->status = $this->swGetStatus()->toString();
     parent::afterConstruct();
 }
 /**
  * Set default columns to display
  */
 protected function afterConstruct()
 {
     if (count($this->defaultColumns) == 0) {
         $this->defaultColumns[] = array('header' => 'No', 'value' => '$this->grid->dataProvider->pagination->currentPage*$this->grid->dataProvider->pagination->pageSize + $row+1');
         $this->defaultColumns[] = 'district_id';
         $this->defaultColumns[] = 'district_name';
         $this->defaultColumns[] = 'city';
         $this->defaultColumns[] = 'province';
     }
     parent::afterConstruct();
 }
 /**
  * Set default columns to display
  */
 protected function afterConstruct()
 {
     if (count($this->defaultColumns) == 0) {
         /*
         $this->defaultColumns[] = array(
         	'class' => 'CCheckBoxColumn',
         	'name' => 'id',
         	'selectableRows' => 2,
         	'checkBoxHtmlOptions' => array('name' => 'trash_id[]')
         );
         */
         $this->defaultColumns[] = array('header' => 'No', 'value' => '$this->grid->dataProvider->pagination->currentPage*$this->grid->dataProvider->pagination->pageSize + $row+1');
         if (!isset($_GET['photo'])) {
             $this->defaultColumns[] = array('name' => 'photo_search', 'value' => '$data->photo->media');
         }
         $this->defaultColumns[] = array('name' => 'tag_search', 'value' => '$data->tag->body');
         $this->defaultColumns[] = array('name' => 'creation_search', 'value' => '$data->creation->displayname');
         $this->defaultColumns[] = array('name' => 'creation_date', 'value' => 'Utility::dateFormat($data->creation_date)', 'htmlOptions' => array('class' => 'center'), 'filter' => Yii::app()->controller->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $this, 'attribute' => 'creation_date', 'language' => 'ja', 'i18nScriptFile' => 'jquery.ui.datepicker-en.js', 'htmlOptions' => array('id' => 'creation_date_filter'), 'options' => array('showOn' => 'focus', 'dateFormat' => 'dd-mm-yy', 'showOtherMonths' => true, 'selectOtherMonths' => true, 'changeMonth' => true, 'changeYear' => true, 'showButtonPanel' => true)), true));
     }
     parent::afterConstruct();
 }
 /**
  * Set default columns to display
  */
 protected function afterConstruct()
 {
     if (count($this->defaultColumns) == 0) {
         $this->defaultColumns[] = 'id';
         $this->defaultColumns[] = 'meta_image';
         $this->defaultColumns[] = 'meta_image_alt';
         $this->defaultColumns[] = 'office_on';
         $this->defaultColumns[] = 'office_name';
         $this->defaultColumns[] = 'office_location';
         $this->defaultColumns[] = 'office_place';
         $this->defaultColumns[] = 'office_country';
         $this->defaultColumns[] = 'office_province';
         $this->defaultColumns[] = 'office_city';
         $this->defaultColumns[] = 'office_district';
         $this->defaultColumns[] = 'office_village';
         $this->defaultColumns[] = 'office_zipcode';
         $this->defaultColumns[] = 'office_hour';
         $this->defaultColumns[] = 'office_phone';
         $this->defaultColumns[] = 'office_fax';
         $this->defaultColumns[] = 'office_email';
         $this->defaultColumns[] = 'office_hotline';
         $this->defaultColumns[] = 'office_website';
         $this->defaultColumns[] = 'google_on';
         $this->defaultColumns[] = 'twitter_on';
         $this->defaultColumns[] = 'twitter_card';
         $this->defaultColumns[] = 'twitter_site';
         $this->defaultColumns[] = 'twitter_creator';
         $this->defaultColumns[] = 'twitter_photo_width';
         $this->defaultColumns[] = 'twitter_photo_height';
         $this->defaultColumns[] = 'twitter_country';
         $this->defaultColumns[] = 'twitter_iphone_name';
         $this->defaultColumns[] = 'twitter_iphone_id';
         $this->defaultColumns[] = 'twitter_iphone_url';
         $this->defaultColumns[] = 'twitter_ipad_name';
         $this->defaultColumns[] = 'twitter_ipad_id';
         $this->defaultColumns[] = 'twitter_ipad_url';
         $this->defaultColumns[] = 'twitter_googleplay_name';
         $this->defaultColumns[] = 'twitter_googleplay_id';
         $this->defaultColumns[] = 'twitter_googleplay_url';
         $this->defaultColumns[] = 'facebook_on';
         $this->defaultColumns[] = 'facebook_type';
         $this->defaultColumns[] = 'facebook_profile_firstname';
         $this->defaultColumns[] = 'facebook_profile_lastname';
         $this->defaultColumns[] = 'facebook_profile_username';
         $this->defaultColumns[] = 'facebook_sitename';
         $this->defaultColumns[] = 'facebook_see_also';
         $this->defaultColumns[] = 'facebook_admins';
         $this->defaultColumns[] = 'modified_date';
         $this->defaultColumns[] = array('name' => 'modified_search', 'value' => '$data->modified_relation->displayname');
     }
     parent::afterConstruct();
 }
 /**
  * Set default columns to display
  */
 protected function afterConstruct()
 {
     if (count($this->defaultColumns) == 0) {
         /*
         $this->defaultColumns[] = array(
         	'class' => 'CCheckBoxColumn',
         	'name' => 'id',
         	'selectableRows' => 2,
         	'checkBoxHtmlOptions' => array('name' => 'trash_id[]')
         );
         */
         $this->defaultColumns[] = array('header' => 'No', 'value' => '$this->grid->dataProvider->pagination->currentPage*$this->grid->dataProvider->pagination->pageSize + $row+1');
         $this->defaultColumns[] = array('name' => 'user_search', 'value' => '$data->user->displayname');
         $this->defaultColumns[] = 'android_id';
         $this->defaultColumns[] = array('name' => 'creation_date', 'value' => 'Utility::dateFormat($data->creation_date)', 'htmlOptions' => array('class' => 'center'), 'filter' => Yii::app()->controller->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $this, 'attribute' => 'creation_date', 'language' => 'ja', 'i18nScriptFile' => 'jquery.ui.datepicker-en.js', 'htmlOptions' => array('id' => 'creation_date_filter'), 'options' => array('showOn' => 'focus', 'dateFormat' => 'dd-mm-yy', 'showOtherMonths' => true, 'selectOtherMonths' => true, 'changeMonth' => true, 'changeYear' => true, 'showButtonPanel' => true)), true));
         $this->defaultColumns[] = array('name' => 'generate_date', 'value' => 'Utility::dateFormat($data->generate_date)', 'htmlOptions' => array('class' => 'center'), 'filter' => Yii::app()->controller->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $this, 'attribute' => 'generate_date', 'language' => 'ja', 'i18nScriptFile' => 'jquery.ui.datepicker-en.js', 'htmlOptions' => array('id' => 'generate_date_filter'), 'options' => array('showOn' => 'focus', 'dateFormat' => 'dd-mm-yy', 'showOtherMonths' => true, 'selectOtherMonths' => true, 'changeMonth' => true, 'changeYear' => true, 'showButtonPanel' => true)), true));
         $this->defaultColumns[] = array('name' => 'unpublish_date', 'value' => 'Utility::dateFormat($data->unpublish_date)', 'htmlOptions' => array('class' => 'center'), 'filter' => Yii::app()->controller->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $this, 'attribute' => 'unpublish_date', 'language' => 'ja', 'i18nScriptFile' => 'jquery.ui.datepicker-en.js', 'htmlOptions' => array('id' => 'unpublish_date_filter'), 'options' => array('showOn' => 'focus', 'dateFormat' => 'dd-mm-yy', 'showOtherMonths' => true, 'selectOtherMonths' => true, 'changeMonth' => true, 'changeYear' => true, 'showButtonPanel' => true)), true));
         if (!isset($_GET['type'])) {
             $this->defaultColumns[] = array('name' => 'publish', 'value' => 'Utility::getPublish(Yii::app()->controller->createUrl("publish",array("id"=>$data->id)), $data->publish, 1)', 'htmlOptions' => array('class' => 'center'), 'filter' => array(1 => Yii::t('phrase', 'Yes'), 0 => Yii::t('phrase', 'No')), 'type' => 'raw');
         }
     }
     parent::afterConstruct();
 }
 /**
  * Set default columns to display
  */
 protected function afterConstruct()
 {
     if (count($this->defaultColumns) == 0) {
         $this->defaultColumns[] = array('header' => 'No', 'value' => '$this->grid->dataProvider->pagination->currentPage*$this->grid->dataProvider->pagination->pageSize + $row+1');
         $this->defaultColumns[] = 'folder';
         $this->defaultColumns[] = array('name' => 'name', 'value' => '$data->name == "" ? "-" : $data->name');
         $this->defaultColumns[] = array('name' => 'desc', 'value' => '$data->desc == "" ? "-" : $data->desc');
         $this->defaultColumns[] = array('name' => 'creation_search', 'value' => '$data->creation_relation->displayname');
         $this->defaultColumns[] = array('name' => 'creation_date', 'value' => 'Utility::dateFormat($data->creation_date)', 'htmlOptions' => array('class' => 'center'), 'filter' => Yii::app()->controller->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $this, 'attribute' => 'creation_date', 'language' => 'ja', 'i18nScriptFile' => 'jquery.ui.datepicker-en.js', 'htmlOptions' => array('id' => 'creation_date_filter'), 'options' => array('showOn' => 'focus', 'dateFormat' => 'dd-mm-yy', 'showOtherMonths' => true, 'selectOtherMonths' => true, 'changeMonth' => true, 'changeYear' => true, 'showButtonPanel' => true)), true));
         $this->defaultColumns[] = array('name' => 'install', 'value' => '$data->install == 1 ? Chtml::image(Yii::app()->theme->baseUrl.\'/images/icons/publish.png\') : Utility::getPublish(Yii::app()->controller->createUrl("install",array("id"=>$data->plugin_id)), $data->install, 10)', 'htmlOptions' => array('class' => 'center'), 'filter' => array(1 => Yii::t('phrase', 'Yes'), 0 => Yii::t('phrase', 'No')), 'type' => 'raw');
         $this->defaultColumns[] = array('name' => 'actived', 'value' => '$data->install == 1 ? ($data->actived == 2 ? Chtml::image(Yii::app()->theme->baseUrl.\'/images/icons/publish.png\') : Utility::getPublish(Yii::app()->controller->createUrl("active",array("id"=>$data->plugin_id)), $data->actived, 2)) : "-"', 'htmlOptions' => array('class' => 'center'), 'filter' => array(1 => Yii::t('phrase', 'Yes'), 0 => Yii::t('phrase', 'No')), 'type' => 'raw');
         $this->defaultColumns[] = array('name' => 'search', 'value' => '$data->search == 1 ? Chtml::image(Yii::app()->theme->baseUrl.\'/images/icons/publish.png\') : Chtml::image(Yii::app()->theme->baseUrl.\'/images/icons/unpublish.png\')', 'htmlOptions' => array('class' => 'center'), 'filter' => array(1 => Yii::t('phrase', 'Yes'), 0 => Yii::t('phrase', 'No')), 'type' => 'raw');
         $this->defaultColumns[] = array('name' => 'defaults', 'value' => '$data->install == 1 ? ($data->defaults == 1 ? Chtml::image(Yii::app()->theme->baseUrl.\'/images/icons/publish.png\') : Utility::getPublish(Yii::app()->controller->createUrl("default",array("id"=>$data->plugin_id)), $data->defaults, 6)) : "-"', 'htmlOptions' => array('class' => 'center'), 'filter' => array(1 => Yii::t('phrase', 'Yes'), 0 => Yii::t('phrase', 'No')), 'type' => 'raw');
     }
     parent::afterConstruct();
 }
 /**
  * Set default columns to display
  */
 protected function afterConstruct()
 {
     if (count($this->defaultColumns) == 0) {
         /*
         $this->defaultColumns[] = array(
         	'class' => 'CCheckBoxColumn',
         	'name' => 'id',
         	'selectableRows' => 2,
         	'checkBoxHtmlOptions' => array('name' => 'trash_id[]')
         );
         */
         $this->defaultColumns[] = array('header' => 'No', 'value' => '$this->grid->dataProvider->pagination->currentPage*$this->grid->dataProvider->pagination->pageSize + $row+1');
         $this->defaultColumns[] = 'menu_id';
         $this->defaultColumns[] = 'title';
     }
     parent::afterConstruct();
 }
 /**
  * Set default columns to display
  */
 protected function afterConstruct()
 {
     if (count($this->defaultColumns) == 0) {
         $this->defaultColumns[] = array('header' => 'No', 'value' => '$this->grid->dataProvider->pagination->currentPage*$this->grid->dataProvider->pagination->pageSize + $row+1');
         $this->defaultColumns[] = array('name' => 'user_search', 'value' => '$data->newsletter->user_id != 0 ? $data->newsletter->user->displayname : "-"');
         $this->defaultColumns[] = array('name' => 'email_search', 'value' => '$data->newsletter->email');
         $this->defaultColumns[] = array('name' => 'status', 'value' => '$data->status == 1 ? Phrase::trans(23057,1) : Phrase::trans(16256,1)', 'htmlOptions' => array('class' => 'center'), 'filter' => array(1 => Phrase::trans(23057, 1), 0 => Phrase::trans(16256, 1)), 'type' => 'raw');
         $this->defaultColumns[] = array('name' => 'creation_date', 'value' => 'Utility::dateFormat($data->creation_date)', 'htmlOptions' => array('class' => 'center'), 'filter' => Yii::app()->controller->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $this, 'attribute' => 'creation_date', 'language' => 'ja', 'i18nScriptFile' => 'jquery.ui.datepicker-en.js', 'htmlOptions' => array('id' => 'creation_date_filter'), 'options' => array('showOn' => 'focus', 'dateFormat' => 'dd-mm-yy', 'showOtherMonths' => true, 'selectOtherMonths' => true, 'changeMonth' => true, 'changeYear' => true, 'showButtonPanel' => true)), true));
     }
     parent::afterConstruct();
 }
 /**
  * Set default columns to display
  */
 protected function afterConstruct()
 {
     if (count($this->defaultColumns) == 0) {
         $this->defaultColumns[] = array('header' => 'No', 'value' => '$this->grid->dataProvider->pagination->currentPage*$this->grid->dataProvider->pagination->pageSize + $row+1');
         //$this->defaultColumns[] = 'cat_id';
         $this->defaultColumns[] = 'category_name';
         $this->defaultColumns[] = 'category_desc';
         $this->defaultColumns[] = 'album_publish';
         $this->defaultColumns[] = 'album_unpublish';
         $this->defaultColumns[] = 'albums';
     }
     parent::afterConstruct();
 }
Example #12
0
 /**
  * afterConstruct
  */
 protected function afterConstruct()
 {
     $this->pe = 0;
     $this->water_demand = 0;
     parent::afterConstruct();
 }
 /**
  * Set default columns to display
  */
 protected function afterConstruct()
 {
     if (count($this->defaultColumns) == 0) {
         $this->defaultColumns[] = 'level_id';
         $this->defaultColumns[] = 'level_name';
         $this->defaultColumns[] = 'level_desc';
         $this->defaultColumns[] = 'oauths';
     }
     parent::afterConstruct();
 }
 /**
  * Set default columns to display
  */
 protected function afterConstruct()
 {
     if (count($this->defaultColumns) == 0) {
         $this->defaultColumns[] = array('header' => 'No', 'value' => '$this->grid->dataProvider->pagination->currentPage*$this->grid->dataProvider->pagination->pageSize + $row+1');
         $this->defaultColumns[] = array('name' => 'title', 'value' => 'Phrase::trans($data->name, 2)');
         $this->defaultColumns[] = array('name' => 'icons', 'value' => '$data->icons != "" ? CHtml::link($data->icons, Yii::app()->request->baseUrl.\'/public/support/\'.$data->icons, array(\'target\' => \'_blank\')) : "-"', 'type' => 'raw');
         $this->defaultColumns[] = array('name' => 'creation_search', 'value' => '$data->creation_relation->displayname');
         $this->defaultColumns[] = array('name' => 'creation_date', 'value' => 'Utility::dateFormat($data->creation_date)', 'htmlOptions' => array('class' => 'center'), 'filter' => Yii::app()->controller->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $this, 'attribute' => 'creation_date', 'language' => 'ja', 'i18nScriptFile' => 'jquery.ui.datepicker-en.js', 'htmlOptions' => array('id' => 'creation_date_filter'), 'options' => array('showOn' => 'focus', 'dateFormat' => 'dd-mm-yy', 'showOtherMonths' => true, 'selectOtherMonths' => true, 'changeMonth' => true, 'changeYear' => true, 'showButtonPanel' => true)), true));
         $this->defaultColumns[] = array('name' => 'publish', 'value' => '$data->publish == 2 ? "-" : Utility::getPublish(Yii::app()->controller->createUrl("publish",array("id"=>$data->cat_id)), $data->publish, 1) ', 'htmlOptions' => array('class' => 'center'), 'type' => 'raw');
     }
     parent::afterConstruct();
 }
 /**
  * Set default columns to display
  */
 protected function afterConstruct()
 {
     if (count($this->defaultColumns) == 0) {
         /*
         $this->defaultColumns[] = array(
         	'class' => 'CCheckBoxColumn',
         	'name' => 'id',
         	'selectableRows' => 2,
         	'checkBoxHtmlOptions' => array('name' => 'trash_id[]')
         );
         */
         $this->defaultColumns[] = array('header' => 'No', 'value' => '$this->grid->dataProvider->pagination->currentPage*$this->grid->dataProvider->pagination->pageSize + $row+1');
         $this->defaultColumns[] = array('name' => 'dependency', 'value' => '$data->dependency != 0 ? Phrase::trans(ReportCategory::model()->findByPk($data->dependency)->name, 2) : \'-\'');
         $this->defaultColumns[] = array('name' => 'title', 'value' => 'Phrase::trans($data->name, 2)');
         $this->defaultColumns[] = array('name' => 'description', 'value' => 'Phrase::trans($data->desc, 2)');
         if (!isset($_GET['type'])) {
             $this->defaultColumns[] = array('name' => 'publish', 'value' => 'Utility::getPublish(Yii::app()->controller->createUrl("publish",array("id"=>$data->cat_id)), $data->publish, 1)', 'htmlOptions' => array('class' => 'center'), 'type' => 'raw');
         }
     }
     parent::afterConstruct();
 }
Example #16
0
 public function afterConstruct()
 {
     parent::afterConstruct();
     $this->expires_at = time() + $this->expires_in;
 }
 /**
  * Set default columns to display
  */
 protected function afterConstruct()
 {
     if (count($this->defaultColumns) == 0) {
         $this->defaultColumns[] = array('header' => 'ID', 'name' => 'phrase_id', 'value' => '$data->phrase_id', 'htmlOptions' => array('class' => 'center'));
         $this->defaultColumns[] = array('name' => 'plugin_id', 'value' => '$data->plugin->name', 'htmlOptions' => array('class' => 'center'), 'filter' => OmmuPlugins::getPlugin(0, 'id'), 'type' => 'raw');
         $this->defaultColumns[] = 'en_us';
         $this->defaultColumns[] = 'id';
         $this->defaultColumns[] = 'location';
     }
     parent::afterConstruct();
 }
Example #18
0
 /**
  * (non-PHPdoc)
  * @see yii/CModel#afterConstruct()
  */
 public function afterConstruct()
 {
     $this->salt = md5(rand());
     return parent::afterConstruct();
 }
 /**
  * Set default columns to display
  */
 protected function afterConstruct()
 {
     if (count($this->defaultColumns) == 0) {
         /*
         $this->defaultColumns[] = array(
         	'class' => 'CCheckBoxColumn',
         	'name' => 'id',
         	'selectableRows' => 2,
         	'checkBoxHtmlOptions' => array('name' => 'trash_id[]')
         );
         */
         $this->defaultColumns[] = array('header' => 'No', 'value' => '$this->grid->dataProvider->pagination->currentPage*$this->grid->dataProvider->pagination->pageSize + $row+1');
         $this->defaultColumns[] = array('name' => 'title', 'value' => 'Phrase::trans($data->name, 2)');
         $this->defaultColumns[] = array('name' => 'description', 'value' => 'Phrase::trans($data->desc, 2)');
         $this->defaultColumns[] = array('name' => 'dependency', 'value' => '$data->dependency != 0 ? Phrase::trans(ArticleCategory::model()->findByPk($data->dependency)->name, 2) : "-"');
         $this->defaultColumns[] = array('header' => 'Count', 'value' => 'CHtml::link($data->view_cat->articles." ".Phrase::trans(26000,1), Yii::app()->controller->createUrl("o/admin/manage",array("category"=>$data->cat_id)))', 'htmlOptions' => array('class' => 'center'), 'type' => 'raw');
         $this->defaultColumns[] = array('name' => 'creation_search', 'value' => '$data->creation_relation->displayname');
         $this->defaultColumns[] = array('name' => 'creation_date', 'value' => 'Utility::dateFormat($data->creation_date)', 'htmlOptions' => array('class' => 'center'), 'filter' => Yii::app()->controller->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $this, 'attribute' => 'creation_date', 'language' => 'ja', 'i18nScriptFile' => 'jquery.ui.datepicker-en.js', 'htmlOptions' => array('id' => 'creation_date_filter'), 'options' => array('showOn' => 'focus', 'dateFormat' => 'dd-mm-yy', 'showOtherMonths' => true, 'selectOtherMonths' => true, 'changeMonth' => true, 'changeYear' => true, 'showButtonPanel' => true)), true));
         if (!isset($_GET['type'])) {
             $this->defaultColumns[] = array('name' => 'publish', 'value' => 'Utility::getPublish(Yii::app()->controller->createUrl("o/category/publish",array("id"=>$data->cat_id)), $data->publish, 1)', 'htmlOptions' => array('class' => 'center'), 'filter' => array(1 => Yii::t('phrase', 'Yes'), 0 => Yii::t('phrase', 'No')), 'type' => 'raw');
         }
     }
     parent::afterConstruct();
 }
 /**
  * Set default columns to display
  */
 protected function afterConstruct()
 {
     if (count($this->defaultColumns) == 0) {
         /*
         $this->defaultColumns[] = array(
         	'class' => 'CCheckBoxColumn',
         	'name' => 'id',
         	'selectableRows' => 2,
         	'checkBoxHtmlOptions' => array('name' => 'trash_id[]')
         );
         */
         $this->defaultColumns[] = array('header' => 'No', 'value' => '$this->grid->dataProvider->pagination->currentPage*$this->grid->dataProvider->pagination->pageSize + $row+1');
         $this->defaultColumns[] = array('name' => 'title', 'value' => 'Phrase::trans($data->name, 2)');
         $this->defaultColumns[] = array('name' => 'description', 'value' => 'Phrase::trans($data->desc, 2)');
         $this->defaultColumns[] = array('name' => 'media_size', 'value' => 'BannerCategory::getPreviewSize($data->media_size)', 'htmlOptions' => array('class' => 'center'));
         $this->defaultColumns[] = array('header' => Yii::t('phrase', 'Limit'), 'name' => 'limit', 'value' => '$data->limit', 'htmlOptions' => array('class' => 'center'));
         $this->defaultColumns[] = array('header' => 'Publish', 'value' => '$data->view_cat->banner_publish > $data->limit ? $data->limit."/".$data->view_cat->banner_publish : $data->view_cat->banner_publish', 'htmlOptions' => array('class' => 'center'));
         $this->defaultColumns[] = array('header' => 'Pending', 'value' => '$data->view_cat->banner_pending', 'htmlOptions' => array('class' => 'center'));
         $this->defaultColumns[] = array('header' => 'Expired', 'value' => '$data->view_cat->banner_expired', 'htmlOptions' => array('class' => 'center'));
         $this->defaultColumns[] = array('header' => 'Total', 'value' => '$data->view_cat->banners', 'htmlOptions' => array('class' => 'center'));
         /*
         $this->defaultColumns[] = array(
         	'name' => 'creation_search',
         	'value' => '$data->creation_relation->displayname',
         );
         $this->defaultColumns[] = array(
         	'name' => 'creation_date',
         	'value' => 'Utility::dateFormat($data->creation_date)',
         	'htmlOptions' => array(
         		'class' => 'center',
         	),
         	'filter' => Yii::app()->controller->widget('zii.widgets.jui.CJuiDatePicker', array(
         		'model'=>$this,
         		'attribute'=>'creation_date',
         		'language' => 'ja',
         		'i18nScriptFile' => 'jquery.ui.datepicker-en.js',
         		//'mode'=>'datetime',
         		'htmlOptions' => array(
         			'id' => 'creation_date_filter',
         		),
         		'options'=>array(
         			'showOn' => 'focus',
         			'dateFormat' => 'dd-mm-yy',
         			'showOtherMonths' => true,
         			'selectOtherMonths' => true,
         			'changeMonth' => true,
         			'changeYear' => true,
         			'showButtonPanel' => true,
         		),
         	), true),
         );
         */
         if (!isset($_GET['type'])) {
             $this->defaultColumns[] = array('header' => 'Status', 'name' => 'publish', 'value' => 'Utility::getPublish(Yii::app()->controller->createUrl("publish",array("id"=>$data->cat_id)), $data->publish, 1)', 'htmlOptions' => array('class' => 'center'), 'filter' => array(1 => Yii::t('phrase', 'Yes'), 0 => Yii::t('phrase', 'No')), 'type' => 'raw');
         }
     }
     parent::afterConstruct();
 }
 /**
  * Set default columns to display
  */
 protected function afterConstruct()
 {
     if (count($this->defaultColumns) == 0) {
         $this->defaultColumns[] = array('header' => 'No', 'value' => '$this->grid->dataProvider->pagination->currentPage*$this->grid->dataProvider->pagination->pageSize + $row+1');
         $this->defaultColumns[] = 'cat_id';
         $this->defaultColumns[] = 'title';
         $this->defaultColumns[] = 'description';
         $this->defaultColumns[] = 'menus';
     }
     parent::afterConstruct();
 }
 /**
  * Set default columns to display
  */
 protected function afterConstruct()
 {
     if (count($this->defaultColumns) == 0) {
         $this->defaultColumns[] = array('header' => 'No', 'value' => '$this->grid->dataProvider->pagination->currentPage*$this->grid->dataProvider->pagination->pageSize + $row+1');
         $this->defaultColumns[] = array('name' => 'date_key', 'value' => 'Utility::dateFormat($data->date_key)', 'htmlOptions' => array('class' => 'center'), 'filter' => Yii::app()->controller->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $this, 'attribute' => 'date_key', 'language' => 'ja', 'i18nScriptFile' => 'jquery.ui.datepicker-en.js', 'htmlOptions' => array('id' => 'date_key_filter'), 'options' => array('showOn' => 'focus', 'dateFormat' => 'dd-mm-yy', 'showOtherMonths' => true, 'selectOtherMonths' => true, 'changeMonth' => true, 'changeYear' => true, 'showButtonPanel' => true)), true));
         $this->defaultColumns[] = 'category_insert';
         $this->defaultColumns[] = 'category_update';
         $this->defaultColumns[] = 'category_delete';
         $this->defaultColumns[] = 'album_insert';
         $this->defaultColumns[] = 'album_update';
         $this->defaultColumns[] = 'album_delete';
         $this->defaultColumns[] = 'tag_insert_unique';
         $this->defaultColumns[] = 'tag_insert';
         $this->defaultColumns[] = 'tag_delete';
         $this->defaultColumns[] = 'album_photo_insert';
         $this->defaultColumns[] = 'album_photo_update';
         $this->defaultColumns[] = 'album_photo_delete';
         $this->defaultColumns[] = 'photo_tag_insert_unique';
         $this->defaultColumns[] = 'photo_tag_insert';
         $this->defaultColumns[] = 'photo_tag_delete';
         $this->defaultColumns[] = 'album_setting_update';
         $this->defaultColumns[] = 'album_views';
         $this->defaultColumns[] = 'album_likes';
         $this->defaultColumns[] = 'album_unlikes';
     }
     parent::afterConstruct();
 }
 /**
  * Set default columns to display
  */
 protected function afterConstruct()
 {
     if (count($this->defaultColumns) == 0) {
         $this->defaultColumns[] = array('header' => 'No', 'value' => '$this->grid->dataProvider->pagination->currentPage*$this->grid->dataProvider->pagination->pageSize + $row+1');
         if (!isset($_GET['article'])) {
             $this->defaultColumns[] = array('name' => 'article_search', 'value' => '$data->article->title."<br/><span>".Utility::shortText(Utility::hardDecode($data->article->body),150)."</span>"', 'htmlOptions' => array('class' => 'bold'), 'type' => 'raw');
         }
         $this->defaultColumns[] = array('name' => 'tag_search', 'value' => '$data->tag_TO->body');
         $this->defaultColumns[] = array('name' => 'creation_search', 'value' => '$data->creation_relation->displayname');
         $this->defaultColumns[] = array('name' => 'creation_date', 'value' => 'Utility::dateFormat($data->creation_date)', 'htmlOptions' => array('class' => 'center'), 'filter' => Yii::app()->controller->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $this, 'attribute' => 'creation_date', 'language' => 'ja', 'i18nScriptFile' => 'jquery.ui.datepicker-en.js', 'htmlOptions' => array('id' => 'creation_date_filter'), 'options' => array('showOn' => 'focus', 'dateFormat' => 'dd-mm-yy', 'showOtherMonths' => true, 'selectOtherMonths' => true, 'changeMonth' => true, 'changeYear' => true, 'showButtonPanel' => true)), true));
     }
     parent::afterConstruct();
 }
 /**
  * Set default columns to display
  */
 protected function afterConstruct()
 {
     if (count($this->defaultColumns) == 0) {
         $this->defaultColumns[] = array('header' => 'No', 'value' => '$this->grid->dataProvider->pagination->currentPage*$this->grid->dataProvider->pagination->pageSize + $row+1');
         $this->defaultColumns[] = array('name' => 'subject', 'value' => '$data->subject != "" ? $data->subject : "-"');
         $this->defaultColumns[] = 'email';
         $this->defaultColumns[] = array('name' => 'displayname', 'value' => '$data->user_id != 0 ? $data->user->displayname : ($data->displayname != "" ? $data->displayname : "-")');
         $this->defaultColumns[] = array('name' => 'phone', 'value' => '$data->phone != "" ? $data->phone : "-"');
         $this->defaultColumns[] = array('name' => 'creation_date', 'value' => 'Utility::dateFormat($data->creation_date, true)', 'htmlOptions' => array('class' => 'center'), 'filter' => Yii::app()->controller->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $this, 'attribute' => 'creation_date', 'language' => 'ja', 'i18nScriptFile' => 'jquery.ui.datepicker-en.js', 'htmlOptions' => array('id' => 'creation_date_filter'), 'options' => array('showOn' => 'focus', 'dateFormat' => 'dd-mm-yy', 'showOtherMonths' => true, 'selectOtherMonths' => true, 'changeMonth' => true, 'changeYear' => true, 'showButtonPanel' => true)), true));
         $this->defaultColumns[] = array('name' => 'reply', 'value' => '$data->reply != 0 ? Chtml::image(Yii::app()->theme->baseUrl.\'/images/icons/publish.png\') : Chtml::image(Yii::app()->theme->baseUrl.\'/images/icons/unpublish.png\') ', 'htmlOptions' => array('class' => 'center'), 'filter' => array(1 => Yii::t('phrase', 'Yes'), 0 => Yii::t('phrase', 'No')), 'type' => 'raw');
     }
     parent::afterConstruct();
 }
 /**
  * Set default columns to display
  */
 protected function afterConstruct()
 {
     if (count($this->defaultColumns) == 0) {
         $this->defaultColumns[] = array('header' => 'No', 'value' => '$this->grid->dataProvider->pagination->currentPage*$this->grid->dataProvider->pagination->pageSize + $row+1');
         if (!isset($_GET['queue'])) {
             $this->defaultColumns[] = array('name' => 'email', 'value' => '$data->queue->email');
         }
         if (!isset($_GET['invite'])) {
             $this->defaultColumns[] = array('name' => 'inviter_search', 'value' => '$data->inviter->displayname');
         }
         $this->defaultColumns[] = array('name' => 'code', 'value' => '$data->code');
         $this->defaultColumns[] = array('name' => 'invite_ip', 'value' => '$data->invite_ip');
         $this->defaultColumns[] = array('name' => 'invite_date', 'value' => 'Utility::dateFormat($data->invite_date)', 'htmlOptions' => array('class' => 'center'), 'filter' => Yii::app()->controller->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $this, 'attribute' => 'invite_date', 'language' => 'ja', 'i18nScriptFile' => 'jquery.ui.datepicker-en.js', 'htmlOptions' => array('id' => 'invite_date_filter'), 'options' => array('showOn' => 'focus', 'dateFormat' => 'dd-mm-yy', 'showOtherMonths' => true, 'selectOtherMonths' => true, 'changeMonth' => true, 'changeYear' => true, 'showButtonPanel' => true)), true));
     }
     parent::afterConstruct();
 }
 /**
  * Set default columns to display
  */
 protected function afterConstruct()
 {
     if (count($this->defaultColumns) == 0) {
         $this->defaultColumns[] = array('header' => 'No', 'value' => '$this->grid->dataProvider->pagination->currentPage*$this->grid->dataProvider->pagination->pageSize + $row+1');
         $this->defaultColumns[] = 'tag_id';
         $this->defaultColumns[] = 'album_id';
         $this->defaultColumns[] = 'media_id';
         $this->defaultColumns[] = 'tags';
         $this->defaultColumns[] = 'photos';
     }
     parent::afterConstruct();
 }
 /**
  * Set default columns to display
  */
 protected function afterConstruct()
 {
     if (count($this->defaultColumns) == 0) {
         $this->defaultColumns[] = 'locale_id';
         $this->defaultColumns[] = 'defaults';
         $this->defaultColumns[] = 'locale';
         $this->defaultColumns[] = 'title';
     }
     parent::afterConstruct();
 }
 /**
  * Set default columns to display
  */
 protected function afterConstruct()
 {
     if (count($this->defaultColumns) == 0) {
         $this->defaultColumns[] = array('header' => 'No', 'value' => '$this->grid->dataProvider->pagination->currentPage*$this->grid->dataProvider->pagination->pageSize + $row+1');
         $this->defaultColumns[] = array('name' => 'plugin_id', 'value' => '$data->plugin->name', 'htmlOptions' => array('class' => 'center'), 'filter' => OmmuPlugins::getPlugin(0, 'id'), 'type' => 'raw');
         $this->defaultColumns[] = array('name' => 'template_key', 'value' => '$data->template_key');
         //$this->defaultColumns[] = 'template';
         $this->defaultColumns[] = 'variable';
         $this->defaultColumns[] = array('name' => 'creation_search', 'value' => '$data->creation_relation->displayname');
         $this->defaultColumns[] = array('name' => 'creation_date', 'value' => 'Utility::dateFormat($data->creation_date)', 'htmlOptions' => array('class' => 'center'), 'filter' => Yii::app()->controller->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $this, 'attribute' => 'creation_date', 'language' => 'ja', 'i18nScriptFile' => 'jquery.ui.datepicker-en.js', 'htmlOptions' => array('id' => 'creation_date_filter'), 'options' => array('showOn' => 'focus', 'dateFormat' => 'dd-mm-yy', 'showOtherMonths' => true, 'selectOtherMonths' => true, 'changeMonth' => true, 'changeYear' => true, 'showButtonPanel' => true)), true));
     }
     parent::afterConstruct();
 }
 /**
  * Set default columns to display
  */
 protected function afterConstruct()
 {
     if (count($this->defaultColumns) == 0) {
         $this->defaultColumns[] = 'license';
         $this->defaultColumns[] = 'permission';
         $this->defaultColumns[] = 'media_validation';
         $this->defaultColumns[] = 'media_resize';
         $this->defaultColumns[] = 'meta_keyword';
         $this->defaultColumns[] = 'meta_description';
         $this->defaultColumns[] = 'modified_date';
         $this->defaultColumns[] = 'modified_id';
         $this->defaultColumns[] = array('name' => 'modified_search', 'value' => '$data->modified_relation->displayname');
     }
     parent::afterConstruct();
 }
 /**
  * Set default columns to display
  */
 protected function afterConstruct()
 {
     if (count($this->defaultColumns) == 0) {
         $this->defaultColumns[] = array('header' => 'No', 'value' => '$this->grid->dataProvider->pagination->currentPage*$this->grid->dataProvider->pagination->pageSize + $row+1');
         $this->defaultColumns[] = 'name';
         $this->defaultColumns[] = 'code';
         $this->defaultColumns[] = array('name' => 'creation_search', 'value' => '$data->creation_relation->displayname');
         $this->defaultColumns[] = array('name' => 'defaults', 'value' => '$data->defaults == 0 ? Chtml::image(Yii::app()->theme->baseUrl.\'/images/icons/unpublish.png\') : Chtml::image(Yii::app()->theme->baseUrl.\'/images/icons/publish.png\')', 'htmlOptions' => array('class' => 'center'), 'filter' => array(1 => Yii::t('phrase', 'Yes'), 0 => Yii::t('phrase', 'No')), 'type' => 'raw');
         $this->defaultColumns[] = array('name' => 'actived', 'value' => 'Utility::getPublish(Yii::app()->controller->createUrl("actived",array("id"=>$data->language_id)), $data->actived, 2)', 'htmlOptions' => array('class' => 'center'), 'filter' => array(1 => Yii::t('phrase', 'Yes'), 0 => Yii::t('phrase', 'No')), 'type' => 'raw');
     }
     parent::afterConstruct();
 }