get_handler_class() 공개 정적인 메소드

Get the registered handler class for a certain type
public static get_handler_class ( string | null $type = null )
$type string | null Type to get, defaults to the option
예제 #1
0
파일: Admin.php 프로젝트: rmccue/Falcon
 /**
  * Validate the handler-specific options via the handler's methods
  *
  * @see self::init()
  */
 public static function validate_handler_options($input)
 {
     if (self::$wipe_handler_options) {
         return array();
     }
     try {
         $handler = Falcon::get_handler_class();
     } catch (Exception $e) {
         return array();
     }
     return $handler::validate_options($input);
 }