Operations for retrieving and modifying Category objects. More...
Public Member Functions | |
| _fromRow (&$row) | |
| CategoryDAO () | |
| categoryExistsByPath ($path) | |
| deleteById ($categoryId, $pressId=null) | |
| deleteByPressId ($pressId) | |
| deleteObject (&$category) | |
| & | getById ($categoryId, $pressId=null, $parentId=null) |
| & | getByParentId ($parentId, $pressId=null, $rangeInfo=null) |
| & | getByPath ($path, $pressId) |
| & | getByPressId ($pressId, $rangeInfo=null) |
| & | getByTitle ($categoryTitle, $pressId, $locale=null) |
| & | getCountByPressId ($pressId) |
| getInsertCategoryId () | |
| getLocaleFieldNames () | |
| insertObject (&$category) | |
| newDataObject () | |
| updateLocaleFields (&$category) | |
| updateObject ($category) | |
Operations for retrieving and modifying Category objects.
Definition at line 19 of file CategoryDAO.inc.php.
| CategoryDAO._fromRow | ( | &$ | row | ) |
Internal function to return an Category object from a row.
| $row | array |
Definition at line 146 of file CategoryDAO.inc.php.
References newDataObject().
Referenced by getById(), getByPath(), and getByTitle().
| CategoryDAO.CategoryDAO | ( | ) |
Constructor
Definition at line 23 of file CategoryDAO.inc.php.
| CategoryDAO.categoryExistsByPath | ( | $ | path | ) |
Check if a category exists with a specified path.
| $path | the path for the category |
Definition at line 121 of file CategoryDAO.inc.php.
| CategoryDAO.deleteById | ( | $ | categoryId, | |
| $ | pressId = null | |||
| ) |
Delete an category by ID.
| $categoryId | int | |
| $pressId | int optional |
Definition at line 247 of file CategoryDAO.inc.php.
Referenced by deleteObject().
| CategoryDAO.deleteByPressId | ( | $ | pressId | ) |
Delete category by press ID NOTE: This does not delete dependent entries. It is intended to be called only when deleting a press.
| $pressId | int |
Definition at line 280 of file CategoryDAO.inc.php.
References deleteObject(), and getByPressId().
| CategoryDAO.deleteObject | ( | &$ | category | ) |
Delete an category.
| $category | Category |
Definition at line 235 of file CategoryDAO.inc.php.
References deleteById().
Referenced by deleteByPressId().
| & CategoryDAO.getById | ( | $ | categoryId, | |
| $ | pressId = null, |
|||
| $ | parentId = null | |||
| ) |
Retrieve an category by ID.
| $categoryId | int | |
| $pressId | int optional | |
| $parentId | int optional |
Definition at line 34 of file CategoryDAO.inc.php.
References _fromRow().
| & CategoryDAO.getByParentId | ( | $ | parentId, | |
| $ | pressId = null, |
|||
| $ | rangeInfo = null | |||
| ) |
Retrieve all categories for a parent category.
Definition at line 330 of file CategoryDAO.inc.php.
| & CategoryDAO.getByPath | ( | $ | path, | |
| $ | pressId | |||
| ) |
Retrieve a category by path.
| $path | string | |
| $pressId | int |
Definition at line 65 of file CategoryDAO.inc.php.
References _fromRow().
| & CategoryDAO.getByPressId | ( | $ | pressId, | |
| $ | rangeInfo = null | |||
| ) |
Retrieve all categories for a press.
Definition at line 292 of file CategoryDAO.inc.php.
Referenced by deleteByPressId().
| & CategoryDAO.getByTitle | ( | $ | categoryTitle, | |
| $ | pressId, | |||
| $ | locale = null | |||
| ) |
Retrieve an category by title.
| $categoryTitle | string | |
| $pressId | int | |
| $locale | string optional |
Definition at line 89 of file CategoryDAO.inc.php.
References _fromRow().
| & CategoryDAO.getCountByPressId | ( | $ | pressId | ) |
Retrieve the number of categories for a press.
Definition at line 311 of file CategoryDAO.inc.php.
| CategoryDAO.getInsertCategoryId | ( | ) |
Get the ID of the last inserted category.
Definition at line 350 of file CategoryDAO.inc.php.
Referenced by insertObject().
| CategoryDAO.getLocaleFieldNames | ( | ) |
Get the list of fields for which data can be localized.
Definition at line 166 of file CategoryDAO.inc.php.
| CategoryDAO.insertObject | ( | &$ | category | ) |
Insert a new category.
| $category | Category |
Definition at line 188 of file CategoryDAO.inc.php.
References getInsertCategoryId(), and updateLocaleFields().
| CategoryDAO.newDataObject | ( | ) |
Construct a new data object corresponding to this DAO.
Definition at line 137 of file CategoryDAO.inc.php.
Referenced by _fromRow().
| CategoryDAO.updateLocaleFields | ( | &$ | category | ) |
Update the localized fields for this table
| $category | object |
Definition at line 174 of file CategoryDAO.inc.php.
Referenced by insertObject(), and updateObject().
| CategoryDAO.updateObject | ( | $ | category | ) |
Update an existing category.
| $category | Category |
Definition at line 211 of file CategoryDAO.inc.php.
References updateLocaleFields().
1.7.1