public function insertResource ($resourceName) {
        $request = get_request();
        $resource = Resources::get($resourceName);
        if ($request->has("rawQuery")) {
            $query = unserialize($request->get("rawQuery"));
            $resource->fields($query->getFields());
        }
        return $resource->insert();
    }
public function insertResource ($resourceName) {
        $request = get_request();
        $resource = Resources::get($resourceName);
        if ($request->has("rawQuery")) {
            $query = unserialize($request->get("rawQuery"));
            $resource->fields($query->getFields());
        }
        return $resource->insert();
    }
public function insertResource ( $ resourceName ) { $ request = get_request ( ) ; $ resource = Resources :: get ( $ resourceName ) ; if ( $ request -> has ( "rawQuery" ) ) { $ query = unserialize ( $ request -> get ( "rawQuery" ) ) ; $ resource -> fields ( $ query -> getFields ( ) ) ; } return $ resource -> insert ( ) ; }
Inserta un nuevo recurso
@param string $resourceName nombre del recurso
@return mixed resultado de la inserción del recurso
Inserta un nuevo recurso