Yaf_Application
PHP Manual

Yaf_Application::getModules

(PECL yaf >=1.0.0)

Yaf_Application::getModulesGet defined module names

説明

public array Yaf_Application::getModules ( void )

Get the modules list defined in config, if no one defined, there will always be a module named "Index".

警告

この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。

パラメータ

この関数にはパラメータはありません。

返り値

例1 Yaf_Application::getModules()example

<?php
$config 
= array(
    
"application" => array(
        
"directory" => realpath(dirname(__FILE__)) . "/application",
    ),
);

/** Yaf_Application */
$application = new Yaf_Application($config);
print_r($application->getModules());
?>

上の例の出力は、 たとえば以下のようになります。

Array
(
    [0] => Index
)

Yaf_Application
PHP Manual