Example #1
0
 public function __init()
 {
     parent::__init();
     $this->_printHeader();
 }
Example #2
0
<?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;
}
Example #3
0
File: Db.php Project: LWFeng/hush
 public function __init()
 {
     parent::__init();
     $this->_printHeader();
     $this->db_config = new MysqlConfig();
 }
Example #4
0
 /**
  * Document cli class instruction
  * @return void
  */
 public function helpAction()
 {
     parent::__init();
     $this->_printHeader();
     echo "hush doc build\n";
 }
Example #5
0
 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');
 }