Helper\Utils::getShortName PHP Method

getShortName() public static method

public static getShortName ( &$class )
    public static function getShortName(&$class)
    {
        $reflection = new ReflectionObject($class);
        return $reflection->getShortName();
    }

Usage Example

 public function __construct()
 {
     $className = Utils::getShortName($this);
     $this->isAvailable();
     $config = Option::get('MAIL_' . $className);
     if (!$config) {
         throw new Error("邮件模块 " . $className . " 配置不完整,无法使用。");
     }
     $this->config = json_decode($config, true);
 }
All Usage Examples Of Helper\Utils::getShortName