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

			return false;
		}
public function exists ($id)
		{
			foreach ($this->_data as $category)
				if ($category->id == $id)
					return true;

			return false;
		}
public function exists ( $ id ) { foreach ( $ this -> _data as $ category ) if ( $ category -> id == $ id ) return true ; return false ; }
Checks if category exists.
@param integer $id Category ID.
@return bool
Checks if category exists .