/** * Returns TRUE if $key is a standard descriptor * defined by the string constants in this interface and FALSE if it is * either a valid implementation-specific key or not a valid key. * * @param string $key a descriptor key. * @return boolan whether $key is a standard descriptor. * @api */ public function isStandardDescriptor($key) { $ref = new ReflectionClass('PHPCR_RepositoryInterface'); $consts = $ref->getConstantcs(); return in_array($key, $consts); }