示例#1
0
 public function including($child, $query = false)
 {
     if (strstr($child, '/')) {
         $parts = explode('/', $child, 2);
         $this->children[$parts[0]] = including($parts[1], $query);
     } else {
         if (is_bool($query)) {
             $this->children[$child] = true;
         } else {
             $this->children[$child] = $query;
         }
     }
     return $this;
 }
示例#2
0
 function using($class)
 {
     if (!including(FileHandler::GetNameFromClass($class))) {
         throw new UsingFailedException($class);
     }
 }