示例#1
0
文件: AiraTest.php 项目: TeaMeow/Aira
 function testAlive()
 {
     Aira::alive();
 }
示例#2
0
文件: aira.php 项目: hpcslag/Aira
 /**
  * Set Handler
  * 
  * Set a error handler.
  * 
  * @param string $FunctionName   The name of the function which we want it to be the handler.
  */
 public static function SetHandler($FunctionName)
 {
     self::$Handler = $FunctionName;
 }
示例#3
0
 /**
  * Log
  *
  */
 function log()
 {
     return $this->hasAira ? Aira::Add('INCORRECT_FORM') : $this;
 }
示例#4
0
文件: aira.php 项目: TeaMeow/Aira
 /**
  * Set the success handler.
  *
  * @param string $handlerName   The name of the success handler function.
  */
 static function setSuccessHandler($handlerName)
 {
     self::$successHandler = $handlerName;
 }