src/Tolkien/BuildPost.php
public function defineCategories($header)
	{
		$categories = array();
		$cats = explode(',', $header['categories']);
		foreach ($cats as $category) 
		{
			$categories[] = new Category(trim($category));
		}
		return $categories;
	}
public function defineCategories($header)
	{
		$categories = array();
		$cats = explode(',', $header['categories']);
		foreach ($cats as $category) 
		{
			$categories[] = new Category(trim($category));
		}
		return $categories;
	}
public function defineCategories ( $ header ) { $ categories = array ( ) ; $ cats = explode ( ',' , $ header [ 'categories' ] ) ; foreach ( $ cats as $ category ) { $ categories [ ] = new Category ( trim ( $ category ) ) ; } return $ categories ; }
Create a list of category from header metadata

@param array $header
@return array(Model\Category)
Create a list of category from header metadata