Helper::getNSShortname PHP Method

getNSShortname() public static method

public static getNSShortname ( $instance )
    public static function getNSShortname($instance)
    {
        $r = new ReflectionClass($instance);
        return $r->getShortName();
    }

Usage Example

 /**
  * Get the prefix name of this controller, used for path calculations for element views
  *
  * @return string
  */
 protected function getControllerPrefix()
 {
     return strtolower(str_replace('Controller', '', Helper::getNSShortname($this)));
 }
All Usage Examples Of Helper::getNSShortname