예제 #1
0
파일: bolt.php 프로젝트: boltphp/core
function b()
{
    return b::instance();
}
예제 #2
0
파일: Not.19.php 프로젝트: exakat/exakat
<?php

$a = \b::instance($d, null, !$d instanceof \E);
예제 #3
0
파일: boltTest.php 프로젝트: boltphp/core
 public function test_instance()
 {
     $this->assertInstanceOf('\\bolt\\base', b::instance());
 }
예제 #4
0
파일: browser.php 프로젝트: boltphp/core
 /**
  * paths
  */
 public function path($name, $value = null)
 {
     if (is_array($name)) {
         array_walk($name, function ($val, $key) {
             $this->path($key, $val);
         });
         return $this;
     } else {
         if ($value === null) {
             return array_key_exists($name, $this->_paths) ? $this->_paths[$name] : false;
         }
     }
     if (is_array($value)) {
         $this->_paths[$name] = array_map(function ($value) {
             return b::instance()->path($value);
         }, $value);
     } else {
         $this->_paths[$name] = b::instance()->path($value);
     }
     return $this;
 }