public function init() { parent::init(); if ($this->isNewRecord) { $this->ip = HU::getUserIp(); } }
public function init() { parent::init(); if ($this->isNewRecord) { $this->create_date = time(); $this->ip = HU::getUserIp(); } }
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; } }
public function init() { parent::init(); $this->ask_date = time(); $this->ip = HU::getUserIp(); }