typeNotFound() public static method

public static typeNotFound ( $name )
Beispiel #1
0
 /**
  * Overrides an already defined type to use a different implementation.
  *
  * @static
  * @param string $name
  * @param string $className
  * @throws OXMException
  */
 public static function overrideType($name, $className)
 {
     if (!isset(self::$_typesMap[$name])) {
         throw OXMException::typeNotFound($name);
     }
     self::$_typesMap[$name] = $className;
     unset(self::$_typeObjects[$name]);
 }