public function scheme() { $p = explode('/', presto_lib::_cleanup($this->route)); $class = presto_lib::_at($p, 0, ''); $res = presto_lib::_at($p, 1, ''); $file = empty($this->container) ? "{$class}.php" : "{$this->container}/{$class}.php"; $method = empty($res) ? $this->method : $this->method . '_' . $res; $preflight = "{$method}_model"; return (object) array('container' => presto_lib::_cleanup($this->container), 'class' => presto_lib::_cleanup($class), 'file' => str_replace('/.', '.', $file), 'resource' => $res, 'type' => $this->type, 'action' => $this->method, 'method' => presto_lib::_cleanup($method), 'preflight' => presto_lib::_cleanup($preflight), 'params' => $this->params(), 'options' => $this->options, 'referer' => $this->referer); }