function uri_store($data) { if (!(string) $data) { return null; } return so_uri::make($data); }
function post($data) { $subject = so_uri::make($data['subject']); $event = (string) $data['event']; $this->database[] = array('so_subscriber_uri' => $subject, 'so_subscriber_event' => $event); return $this; }
function uri_store($data) { $query = so_uri::make($data)->query; $this->name = $query['article']; $author = hyoo_author::makeInstance()->name($query['author'])->primary(); $this->author = $author; }
function uri_make() { $uri = so_value::make($_SERVER['REQUEST_URI']); //$uri= mb_convert_encoding( $uri, 'UTF-8', 'windows-1251' ); $uri = iconv('windows-1251', 'UTF-8', $uri); return so_uri::make($uri); }
function map_make() { $map = $this->database->dump; foreach ($map as &$record) { $record = so_uri::make($record['so_gist_uri'])->query->resource; } return $map; }
function check($subject, $action) { $subject = so_uri::make($subject)->query; foreach ($this->list as $permit) { if (!$permit['so_permit_pattern']->match($subject)) { continue; } if ($permit['so_permit_action'] != (string) $action) { continue; } return true; } return false; }
function uri_store($data) { $query = so_uri::make($data)->query; $this->id = $query['image']; }
function uri_make() { $uri = so_value::make($_SERVER['REQUEST_URI']); return so_uri::make($uri); }
function uri_store($data) { $query = so_uri::make($data)->query; $this->search = $query['search']; }
function uri_store($data) { $query = so_uri::make($data)->query; $this->name = $query['author']; }
function uri_store($data) { return so_uri::make($data); }