このファイルは view/main/init/maple.ini の [Action] にて読込みが指示される。
Filter_Action により読み込まれる。
下記のようなプログラムの実行で読み出される。
Controller->execute()
-> FilterChain->execute()
-> Filter_Action->execute()
-> ActionExtraChain->execute()
-> Pages_View_Main->execute()
--> Headerinc_View_Main->execute()
====> view/maple.ini
====> view/main/init/maple.ini
-> Preexecute_Main->preExecute()
--> ConfigExtraUtils->execute()
====> view/maple.ini
====> view/main/init/maple.ini
--> FilterChain->execute()
--> Filter_SmartyAssign->execute()
====> language/japanese/main.ini
--> FilterChain->execute()
--> Filter_Action->execute()
--> ActionExtraChain->execute()
====> view/main/init/Init.class.php
Hello_View_Main_Init->execute()
webapp/modules/pages/view/main/Main.class.php
class Pages_View_Main extends Action {
function execute() {
// ページ内のブロックを取得
$blocks = $this->blocksView->getBlockByPageId($page_id_arr);
// アクションを実行
$html[$block['block_id']] =
$this->preexecute->preExecute(
$block['action_name'], $params);
// テンプレートにアサイン
$this->_renderer->assign(
'content_center_field',
$this->pagesCompmain->setPageFetch(... $html ...));
}
webapp/components/preexecute/Main.class.php
class Preexecute_Main {
function preExecute( ... ) {
$this->_actionChain->add($actionName);
}
maple/filter/Filter_Action.class.php
class Filter_Action extends Filter {
function execute() {
$view = $actionChain->execute();
}
maple/nccore/ActionExtraChain.class.php
class ActionExtraChain extends ActionChain {
function add($name) {
// ファイルの読み込み
include_once($filename);
}
function execute() {
// ファイルの実行
return $action->execute();
}