|
Yaf_Loader::getNamespacePathRetrieve the library path of a class 説明
public string Yaf_Loader::getNamespacePath(string
$class_name)Retrieve the library directory a class would be looked up in. パラメータ
戻り値The local library directory if the class belongs to a registered local namespace, otherwise the global library directory (falling back to the local one when the global one is not set). 例例1 Yaf_Loader::getNamespacePath example 上の例の出力は、 たとえば以下のようになります。 /var/www/shop/application/library /usr/local/share/yaf/library 参考
|