protected function _getCallableMethod() { $class = LoadInit::stGetClassCaseInsensitive($this->object); $func = $this->function; $obj = $class::stVirtualConstructor(); // Permitimos que no pasen la funcion tan cual if (!method_exists($obj, $func)) { $func = "st" . ucfirst($this->function); } if (!method_exists($obj, $func)) { LogsErrors::stCreate(array("errorCode" => APIRESTResponseJSONPage::ERROR_CODE_INVALID_FUNCTION_PARAM, "function" => "_getFunctionParams")); return array(); } return array($class, $func); }
private function _loadSearchParams($params) { $class = LoadInit::stGetClassCaseInsensitive($this->object); var_dump($class, $params); die; foreach ($params as $param => $value) { if (isset(EDISubscriptionLog::stObjToDBFields()[$param])) { $this->searchParams["filters"][$param] = $value; // Quitamos el parametro para que no lo carge el autoload del padre unset($params[$param]); } if ($param == "order") { $this->searchParams["order"][$param] = $value; // Quitamos el parametro para que no lo carge el autoload del padre unset($params[$param]); } } return $params; }