예제 #1
0
파일: CommentYii.php 프로젝트: Cranky4/npfs
 public function init()
 {
     parent::init();
     if ($this->isNewRecord) {
         $this->ip = HU::getUserIp();
     }
 }
예제 #2
0
파일: Review.php 프로젝트: Cranky4/npfs
 public function init()
 {
     parent::init();
     if ($this->isNewRecord) {
         $this->create_date = time();
         $this->ip = HU::getUserIp();
     }
 }
예제 #3
0
파일: Offer.php 프로젝트: kot-ezhva/ygin
 public function init()
 {
     parent::init();
     if ($this->isNewRecord) {
         $this->create_date = time();
         $this->ip = HU::getUserIp();
         $this->is_send = 0;
         $this->status = self::STATUS_NEW;
     }
 }
예제 #4
0
파일: Question.php 프로젝트: kot-ezhva/ygin
 public function init()
 {
     parent::init();
     $this->ask_date = time();
     $this->ip = HU::getUserIp();
 }