init() 공개 메소드

init the class
부터: 3.0.0
public init ( string $mode = null ) : mixed
$mode string name of the mode
리턴 mixed
예제 #1
0
 /**
  * console line
  *
  * @since 3.0.0
  *
  * @return string
  */
 public static function consoleLine()
 {
     $console = new Console\Console(Registry::getInstance(), Request::getInstance(), Config::getInstance());
     $output = $console->init('template');
     if (is_string($output)) {
         return htmlentities($output);
     }
 }
예제 #2
0
 /**
  * testInvalid
  *
  * @since 3.0.0
  */
 public function testInvalid()
 {
     /* setup */
     $console = new Console\Console($this->_registry, $this->_request, $this->_config);
     /* actual */
     $actual = $console->init();
     /* compare */
     $this->assertFalse($actual);
 }