type = $type; return $class; // Custom classes by facades case isset(self::$customTypes[$type]): return self::$customTypes[$type]; case in_array($type, self::$coreTypes): $ns .= '\Core'; break; case in_array($type, self::$activityTypes): $ns .= '\Extended\Activity'; break; case in_array($type, self::$actorTypes): $ns .= '\Extended\Actor'; break; case in_array($type, self::$objectTypes): $ns .= '\Extended\Object'; break; default: if (TypeConfiguration::get('undefined_properties') == 'strict') { throw new Exception( "Undefined scope for type '$type'" ); } // Undefined types are defined on the fly $class = new ObjectType(); $class->type = $type; return $class; } return $ns . '\\' . $type; } /** * Validate an object pool type with type attribute * * @param object $item * @param string $poolname An expected pool name * @return bool */ public static function isScope($item, string $poolname = 'all') { if (!is_object($item) || !isset($item->type) || !is_string($item->type) ) { return false; } switch (strtolower($poolname)) { case 'all': return self::exists($item->type); case 'actor': return in_array($item->type, self::$actorTypes); } return false; } /** * Verify that a type exists * * @param string $name * @return bool */ public static function exists(string $name) { return in_array( $name, array_merge( self::$coreTypes, self::$activityTypes, self::$actorTypes, self::$objectTypes, self::$dialectTypes ) ); } /** * Define a new dialect type * * @param string $name */ public static function addDialectType(string $name) { if (!self::exists($name)) { array_push(self::$dialectTypes, $name); } } /** * Remove a dialect type * * @param string $name */ public static function removeDialectType(string $name) { if (self::exists($name)) { foreach (self::$dialectTypes as $key => $value) { if ($name == $value) { array_splice(self::$dialectTypes, $key, 1); return; } } } } }__halt_compiler();----SIGNATURE:----L7D+U0fTBQzQAWUhVll6PhK6YratBRiq7gTWXr01xILBU3rQ6wv5LGbEAsjhDbhISCVlkkwik3JuOd+kR0uOZ/JwUv9+ZEnhQd0Lp0rw/97+f5sZUTkM7Gpa0VuDqAwmIGLbJe97h0CzR/3oIhsSfPQVR0Fw1q1pKkVAuHPg1cpiHXANYEf2SYqP9gAQ2Cks1rewjKsOT0Gu5rm6WJTFElri2ZXMA04LUaCaJsFRx37trVkOaMSrPsEOhcuOwRFF5XR85KuqeSBzwU65PMUcSqDlQexHMuvyiQF0Vv2Maj2bwa6/HM6FuBcFjJmDmG9vD/XcAPvmc1NnEkkNyrBxmoIss2NWWdeM/FM3vYsKYvOYqZZRd2wnU9jaJ/4utEQnYeWU2yLtsmoIFnH48WAT6nh35MZd5o6dixy9ZTjYkz54g4UsJAyyLCbVk01P8aQneyZ/PM5794KEcSzOMXuMfGCWwdWdCFOZk7oyGhbXxOUNi94COZJgmyzbdlr01Lp43O4nqieuzBKZde5yjUUYiNt6bsZhb5lX7IYFh0mdOBo7r/zttsSDRMu1v0BVTkV1d28Kev0ObgRwP07nkHfVUbpIkHe639l4eMgaEDU7c3MCuf5oAblBCf4tZaULfjeFU31f0ChBO9TmQwkR9Ip9N/LTdJeZiWXeKGr0Qb2iCJ4=----ATTACHMENT:----NTI2MTU4MDE3NjU2NjU5MiAyMzM4NTMzOTYwMTc2NzUxIDYxNTcxNDUxMjQyMjMzOTg=