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; }
function using($class) { if (!including(FileHandler::GetNameFromClass($class))) { throw new UsingFailedException($class); } }