Mapping/ItemMetaData.php
public static function initFromItemClass($itemClass)
	{
		$itemMetaData = new ItemMetaData();
		$itemMetaData->setItemClass($itemClass);
		$contruct = new ReflectionMethod($itemClass, '__construct');
		/* @var $param \ReflectionParameter */
		foreach($contruct->getParameters() as $key => $param)
		{
			$itemMetaData->setHitPosition($param->getName(), $key);
			if(!$param->isOptional())
			{
				$itemMetaData->addRequiredHit($param->getName());
			}
		}
		return $itemMetaData;
	}
public static function initFromItemClass($itemClass)
	{
		$itemMetaData = new ItemMetaData();
		$itemMetaData->setItemClass($itemClass);
		$contruct = new ReflectionMethod($itemClass, '__construct');
		/* @var $param \ReflectionParameter */
		foreach($contruct->getParameters() as $key => $param)
		{
			$itemMetaData->setHitPosition($param->getName(), $key);
			if(!$param->isOptional())
			{
				$itemMetaData->addRequiredHit($param->getName());
			}
		}
		return $itemMetaData;
	}
public static function initFromItemClass ( $ itemClass ) { $ itemMetaData = new ItemMetaData ( ) ; $ itemMetaData -> setItemClass ( $ itemClass ) ; $ contruct = new ReflectionMethod ( $ itemClass , '__construct' ) ; /* @var $param \ReflectionParameter */ foreach ( $ contruct -> getParameters ( ) as $ key => $ param ) { $ itemMetaData -> setHitPosition ( $ param -> getName ( ) , $ key ) ; if ( ! $ param -> isOptional ( ) ) { $ itemMetaData -> addRequiredHit ( $ param -> getName ( ) ) ; } } return $ itemMetaData ; }
Initializes a new View instance that will hold the object-relational
mapping of the class with the given name.

@param string $itemClass The name of the item class the new instance is used for.
return ItemMetaData
Initializes a new View instance that will hold the object - relational mapping of the class with the given name .