コード例 #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();
 }