Source for file Ethna_Plugin_Generator_AppManager.php
Documentation is available at Ethna_Plugin_Generator_AppManager.php
// vim: foldmethod=marker
* Ethna_Plugin_Generator_AppManager.php
* @author Masaki Fujimoto <fujimoto@php.net>
* @license http://www.opensource.org/licenses/bsd-license.php The BSD License
// {{{ Ethna_Plugin_Generator_AppManager
* @author Masaki Fujimoto <fujimoto@php.net>
* アプリケーションマネージャのスケルトンを生成する
* @param string $manager_name アプリケーションマネージ名
* @return bool true:成功 false:失敗
$class_name =
$this->ctl->getManagerClassName($manager_name);
$app_dir =
$this->ctl->getDirectory('app');
$app_path =
"${class_name}.php";
$macro['project_id'] =
$this->ctl->getAppId();
$macro['app_path'] =
$app_path;
$macro['app_manager'] =
$class_name;
$user_macro =
$this->_getUserMacro();
$path =
"$app_dir/$app_path";
printf("file [%s] already exists -> skip\n", $path);
} else if ($this->_generateFile("skel.app_manager.php", $path, $macro) ==
false) {
printf("[warning] file creation failed [%s]\n", $path);
printf("app-manager script(s) successfully created [%s]\n", $path);
Documentation generated on Fri, 11 Nov 2011 04:00:12 +0900 by phpDocumentor 1.4.3