editor_login = $namespace->login; $this->action_time = date('Y-m-d H:i:s'); $this->editor_ip = sprintf ('%u', ip2long (Input::instance ()->ip_address ())); } } function getAllRecords () { return $this->orderby('action_time', 'desc')->find_all(); } function getEditorChanges () { return unserialize(base64_decode($this->log_changes)); } }