public function __init() { parent::__init(); $this->_printHeader(); }
<?php /** * Ihush Console * * @author James.Huang <*****@*****.**> * @license http://www.apache.org/licenses/LICENSE-2.0 * @version $Id$ */ define('__HUSH_CLI', 1); require_once '../etc/global.config.php'; require_once 'Hush/Util.php'; //////////////////////////////////////////////////////////////////////////////////////////////////// // Constants definition define('__MYSQL_IMPORT_TOOL', 'mysql'); define('__MYSQL_DUMPER_TOOL', 'mysqldump'); define('__MYSQL_IMPORT_COMMAND', __MYSQL_IMPORT_TOOL . ' {PARAMS} < {SQLFILE}'); define('__MYSQL_DUMPER_COMMAND', __MYSQL_DUMPER_TOOL . ' {PARAMS} --add-drop-database > {SQLFILE}'); //////////////////////////////////////////////////////////////////////////////////////////////////// // Main process try { require_once 'Ihush/Cli.php'; $cli = new Ihush_Cli(); $cli->run(); } catch (Exception $e) { Hush_Util::trace($e); exit; }
public function __init() { parent::__init(); $this->_printHeader(); $this->db_config = new MysqlConfig(); }
/** * Document cli class instruction * @return void */ public function helpAction() { parent::__init(); $this->_printHeader(); echo "hush doc build\n"; }
public function __init() { parent::__init(); $this->init_sql_be = realpath(__ROOT . '/doc/sql/ihush_core.sql'); $this->init_sql_fe = realpath(__ROOT . '/doc/sql/ihush_apps.sql'); }