protected function writeLog($action = 0, $location = '') { $location .= '|writeLog'; $obj = QdLog::getInitObj($this->getCalledClassName(), $this->id, $action, $location, Qdmvc_Helper::getClientIP()); return $obj->save(); }