src/Mouf/MoufManager.php
public function getClassDescriptor($className) {
		if (!isset($this->classDescriptors[$className])) {
			if (MoufManager::getMoufManager() == null || (MoufManager::getMoufManager()->getScope() == self::SCOPE_APP && $this->getScope() == self::SCOPE_APP)
					|| (MoufManager::getMoufManager()->getScope() == self::SCOPE_ADMIN && $this->getScope() == self::SCOPE_ADMIN)) {
				// We are fully in the scope of the application:
				$this->classDescriptors[$className] = new MoufReflectionClass($className);
			} else {
				$this->classDescriptors[$className] = MoufReflectionProxy::getClass($className, $this->getScope() == self::SCOPE_ADMIN);
			}
		}
		return $this->classDescriptors[$className];
	}
public function getClassDescriptor($className) {
		if (!isset($this->classDescriptors[$className])) {
			if (MoufManager::getMoufManager() == null || (MoufManager::getMoufManager()->getScope() == self::SCOPE_APP && $this->getScope() == self::SCOPE_APP)
					|| (MoufManager::getMoufManager()->getScope() == self::SCOPE_ADMIN && $this->getScope() == self::SCOPE_ADMIN)) {
				// We are fully in the scope of the application:
				$this->classDescriptors[$className] = new MoufReflectionClass($className);
			} else {
				$this->classDescriptors[$className] = MoufReflectionProxy::getClass($className, $this->getScope() == self::SCOPE_ADMIN);
			}
		}
		return $this->classDescriptors[$className];
	}
public function getClassDescriptor ( $ className ) { if ( ! isset ( $ this -> classDescriptors [ $ className ] ) ) { if ( MoufManager :: getMoufManager ( ) == null || ( MoufManager :: getMoufManager ( ) -> getScope ( ) == self :: SCOPE_APP && $ this -> getScope ( ) == self :: SCOPE_APP ) || ( MoufManager :: getMoufManager ( ) -> getScope ( ) == self :: SCOPE_ADMIN && $ this -> getScope ( ) == self :: SCOPE_ADMIN ) ) { // We are fully in the scope of the application:
 $ this -> classDescriptors [ $ className ] = new MoufReflectionClass ( $ className ) ; } else { $ this -> classDescriptors [ $ className ] = MoufReflectionProxy :: getClass ( $ className , $ this -> getScope ( ) == self :: SCOPE_ADMIN ) ; } } return $ this -> classDescriptors [ $ className ] ; }
Returns an object describing the class passed in parameter.
This method should only be called in the context of the Mouf administration UI.

@param string $className The name of the class to import
@return MoufXmlReflectionClass
Returns an object describing the class passed in parameter . This method should only be called in the context of the Mouf administration UI .