typeExists() public static method

public static typeExists ( $name )
Beispiel #1
0
 /**
  * Adds a custom type to the type map.
  *
  * @static
  * @param string $name Name of the type. This should correspond to what getName() returns.
  * @param string $className The class name of the custom type.
  * @throws OXMException
  */
 public static function addType($name, $className)
 {
     if (isset(self::$_typesMap[$name])) {
         throw OXMException::typeExists($name);
     }
     self::$_typesMap[$name] = $className;
 }