コード例 #1
0
ファイル: CvList.php プロジェクト: jerichozis/portal
 public function init()
 {
     parent::init();
     $this->genderTypes = Yii::app()->config->gender_types;
     $this->educationTypes = Yii::app()->config->education_types;
     $this->statusTypes = Yii::app()->config->statuses;
     $this->maritalStatuses = Yii::app()->config->marital_statuses;
 }
コード例 #2
0
ファイル: Video.php プロジェクト: liuwanwei/bdmedia
 public function init()
 {
     parent::init();
     $this->createTime = date('Y-m-d H:i:s');
     $this->modifyTime = $this->createTime;
     $this->version = 0;
     $this->mark = null;
 }
コード例 #3
0
ファイル: Feature.php プロジェクト: jankichaudhari/yii-site
 public function init()
 {
     if ($this->scenario === 'custom') {
         $this->fea_type = self::TYPE_CUSTOM;
         $this->fea_weight = 0;
     }
     parent::init();
 }
コード例 #4
0
 public function init($lessonId = 0, $userId = 0)
 {
     if ($lessonId != 0) {
         $this->lessonId = $lessonId;
     }
     if ($userId != 0) {
         $this->userId = $userId;
     }
     return parent::init();
 }
コード例 #5
0
ファイル: User.php プロジェクト: latik/yii-user
 public function init()
 {
     parent::init();
     // Set language
     if (!isset(Yii::app()->request->cookies['lang'])) {
         $language = Locale::acceptFromHttp($_SERVER['HTTP_ACCEPT_LANGUAGE']) ?: 'en_US';
         $cookie = new CHttpCookie('lang', $language);
         $cookie->expire = time() + 60 * 60 * 24 * 30;
         Yii::app()->request->cookies['lang'] = $cookie;
     } else {
         $language = (string) Yii::app()->request->cookies['lang'];
     }
     Yii::app()->setLanguage($language);
 }
コード例 #6
0
 public function init()
 {
     parent::init();
     $this->site = 'http://' . $_SERVER['SERVER_NAME'] . '/';
     $this->page_psw = '';
     $this->support = Yii::app()->params['adminEmail'];
     $this->campaign = '';
     $this->name = '';
     $this->login = '';
     $this->password = '';
     $this->page_cabinet = '';
     $this->page_order = '';
     $this->name_order = '';
     $this->num_order = '';
     $this->subject_order = '';
     $this->price_order = '';
     $this->price_order_part = '';
     $this->sum_order = '';
     $this->message = '';
     $this->page_payment = '';
     $this->specialization = '';
     $this->name_part = '';
 }
コード例 #7
0
 public function init()
 {
     parent::init();
     if (array_key_exists('SERVER_NAME', $_SERVER)) {
         $this->site = 'http://' . $_SERVER['SERVER_NAME'] . '/';
     }
     $this->page_psw = '';
     $this->support = Company::getSupportEmail();
     $this->campaign = Company::getName();
     $this->company = Company::getName();
     $this->name = '';
     $this->login = '';
     $this->password = '';
     $this->page_cabinet = '';
     $this->page_order = '';
     $this->name_order = '';
     $this->num_order = '';
     $this->subject_order = '';
     $this->price_order = '';
     $this->price_order_part = '';
     $this->sum_order = '';
     $this->message = '';
     $this->page_payment = '';
     $this->specialization = '';
     $this->name_part = '';
 }
コード例 #8
0
ファイル: Menu.php プロジェクト: awecode/awecms
 public function init()
 {
     return parent::init();
 }
コード例 #9
0
ファイル: Comment.php プロジェクト: pavlm/ycomments
 public function init()
 {
     $this->user_id = Yii::app()->user->id;
     // default user
     parent::init();
 }
コード例 #10
0
ファイル: Filas.php プロジェクト: cicb/tpc
 public function init()
 {
     $this->LugaresIni = 1;
     $this->LugaresFin = 1;
     return parent::init();
 }
コード例 #11
0
 public function init()
 {
     parent::init();
     $this->surveysCount = 1;
     $this->serviceRatio = 100;
 }
コード例 #12
0
ファイル: User.php プロジェクト: jerichozis/portal
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     $this->statusTypes = Yii::app()->config->user_statuses;
 }
コード例 #13
0
ファイル: Task.php プロジェクト: nsarvar/performance
 public function init()
 {
     if ($this->getScenario() == 'insert') {
         $date = new DateTime();
         $date->setTime(0, 0, 0);
         $this->start_date = $date->format(self::DF_LOCAL);
         $date->setTime(23, 59, 59);
         $this->end_date = $date->add(new DateInterval("P1D"))->format(self::DF_LOCAL);
     }
     return parent::init();
 }
コード例 #14
0
ファイル: Funciones.php プロジェクト: cicb/tpc
 public function init()
 {
     //$this->pathUrlImagesBD = Yii::app()->baseUrl . '/imagesbd/';
     $this->pathUrlImagesBD = 'https://' . $_SERVER['SERVER_NAME'] . '/imagesbd/';
     return parent::init();
 }
コード例 #15
0
ファイル: Content.php プロジェクト: ahdail/humhub
 /**
  * Inits the content record
  */
 public function init()
 {
     parent::init();
     // Intercept this controller
     Yii::app()->interceptor->intercept($this);
 }
コード例 #16
0
 public function init()
 {
     parent::init();
 }
コード例 #17
0
ファイル: Forolevel1.php プロジェクト: cicb/tpc
 public function init()
 {
     $this->ForoMapPat = "no_image.jpg";
     return parent::init();
 }
コード例 #18
0
ファイル: Subzona.php プロジェクト: cicb/tpc
 public function init()
 {
     // Valor iniciales del modelo
     parent::init();
 }
コード例 #19
0
ファイル: Elector.php プロジェクト: vasiliy-pdk/aes
 public function init()
 {
     parent::init();
     $this->status = self::STATUS_ACTIVE;
 }
コード例 #20
0
ファイル: Qr.php プロジェクト: priyranjansingh/getleads
 public function init()
 {
     parent::init();
     $this->qrData = new stdClass();
 }
コード例 #21
0
ファイル: Record.php プロジェクト: vitaliy7711/pdnsops
 /**
  * Initializes the model.
  */
 public function init()
 {
     parent::init();
     $this->ttl = Yii::app()->settings->defaultTTL;
     $this->prio = Record::PRIORITY_DEFAULT;
 }