src/components/CategoryManager.php
public function get ($id)
		{
			foreach ($this->_data as $category)
				if ($category->id == $id)
					return $category;

			return null;
		}
public function get ($id)
		{
			foreach ($this->_data as $category)
				if ($category->id == $id)
					return $category;

			return null;
		}
public function get ( $ id ) { foreach ( $ this -> _data as $ category ) if ( $ category -> id == $ id ) return $ category ; return null ; }
Gets single category by its ID.
@param integer $id
@return Category|null
Gets single category by its ID .