예제 #1
0
 public function init()
 {
     parent::init();
     if ($this->isNewRecord) {
         $this->status_id = Types::$status['active']['id'];
     }
 }
 public function init()
 {
     if ($this->isNewRecord) {
         $this->progress_id = Types::$progress['in_progress']['id'];
         $this->contraindication_id = Types::$boolean['null']['id'];
     }
     return parent::init();
 }
예제 #3
0
 public function init()
 {
     parent::init();
     if ($this->isNewRecord) {
         $this->booking_status_id = Types::$bookingStatus['confirmed']['id'];
         $this->all_day_option_id = Types::$boolean['false']['id'];
     }
 }
예제 #4
0
 public function init()
 {
     if ($this->isNewRecord) {
         $this->status_id = Types::$status['active']['id'];
         $this->auth_type_id = Types::$auth_type['ldap']['id'];
         $this->reg_date = time();
     }
     return parent::init();
 }
예제 #5
0
 public function init()
 {
     if ($this->isNewRecord) {
         $this->created_at = time();
         if (yii::$app->user->isGuest) {
             $this->created_by = 1;
         }
     }
     return parent::init();
 }
예제 #6
0
 public function init()
 {
     if ($this->isNewRecord) {
         $this->member_count = 0;
         $this->manager_count = 0;
         $this->membership_duration = 0;
         $this->status_id = Types::$status['active']['id'];
         $this->public_option_id = Types::$boolean['false']['id'];
     }
     return parent::init();
 }
예제 #7
0
 public function init()
 {
     if ($this->isNewRecord) {
         $this->sex_id = Types::$sex['n']['id'];
         $this->gp_opt_id = Types::$boolean['false']['id'];
         $this->email_opt_id = Types::$boolean['false']['id'];
         $this->status_id = Types::$status['active']['id'];
         $this->old_id = 0;
         $this->cubric_id = sprintf('%s-', date('dmy'));
     }
     return parent::init();
 }
예제 #8
0
 public function init()
 {
     if ($this->isNewRecord) {
         $this->project_option_id = Types::$boolean['false']['id'];
         $this->read_only_option_id = Types::$boolean['false']['id'];
         $this->start_time = '07:00';
         $this->end_time = '20:00';
         $this->hex_code = '#d42300';
         $this->advance_limit = 90;
         $this->old_id = 0;
         $this->allow_overlap_option_id = Types::$boolean['false']['id'];
     }
     return parent::init();
 }
예제 #9
0
 public function init()
 {
     return parent::init();
 }