Example #1
0
 /**
  * Does not update subcategory assignments, only the actual category
  * values, at present. Right now, just name and normalized!
  * 
  * @param Category $objCategory 	a category object
  */
 public function updateUserCategoryProperties(Category $objCategory)
 {
     $objCategory->normalized = Category::normalize($objCategory->name);
     $sql = "UPDATE xerxes_user_categories " . "SET name = :name, normalized = :normalized, published = :published " . "WHERE id = " . $objCategory->id;
     return $this->update($sql, array(":name" => $objCategory->name, ":normalized" => $objCategory->normalized, ":published" => $objCategory->published));
 }