public function add_category($category, $rules = array(), $access = PUBLICY) { if (!is_object(@$this->categories[md5(strtoupper($category))])) { $this->categories[md5(strtoupper($category))] = Category::factory($category, $rules, $access); } }