Exemplo n.º 1
0
 function uri_store($data)
 {
     if (!(string) $data) {
         return null;
     }
     return so_uri::make($data);
 }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
 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;
 }
Exemplo n.º 4
0
 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);
 }
Exemplo n.º 5
0
 function map_make()
 {
     $map = $this->database->dump;
     foreach ($map as &$record) {
         $record = so_uri::make($record['so_gist_uri'])->query->resource;
     }
     return $map;
 }
Exemplo n.º 6
0
 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;
 }
Exemplo n.º 7
0
 function uri_store($data)
 {
     $query = so_uri::make($data)->query;
     $this->id = $query['image'];
 }
Exemplo n.º 8
0
 function uri_make()
 {
     $uri = so_value::make($_SERVER['REQUEST_URI']);
     return so_uri::make($uri);
 }
Exemplo n.º 9
0
 function uri_store($data)
 {
     $query = so_uri::make($data)->query;
     $this->search = $query['search'];
 }
Exemplo n.º 10
0
 function uri_store($data)
 {
     $query = so_uri::make($data)->query;
     $this->name = $query['author'];
 }
Exemplo n.º 11
0
 function uri_store($data)
 {
     return so_uri::make($data);
 }