protected function preSave()
    {
        $result = parent::preSave();

        $this->setTs('now');

        if (getenv('REMOTE_ADDR')) {
            $this->setIp(getenv('REMOTE_ADDR'));
        }

        if (!isset($this->origin)) {
            $this->setOrigin($this->resolveOrigin());
        }

        return $result;
    }
protected function preSave()
    {
        $result = parent::preSave();

        $this->setTs('now');

        if (getenv('REMOTE_ADDR')) {
            $this->setIp(getenv('REMOTE_ADDR'));
        }

        if (!isset($this->origin)) {
            $this->setOrigin($this->resolveOrigin());
        }

        return $result;
    }
protected function preSave ( ) { $ result = parent :: preSave ( ) ; $ this -> setTs ( 'now' ) ; if ( getenv ( 'REMOTE_ADDR' ) ) { $ this -> setIp ( getenv ( 'REMOTE_ADDR' ) ) ; } if ( ! isset ( $ this -> origin ) ) { $ this -> setOrigin ( $ this -> resolveOrigin ( ) ) ; } return $ result ; }
Event called before _creating_ the object.

@see    Charcoal\Source\StorableTrait::preSave() For the "create" Event.
@return boolean
Event called before _creating_ the object .