Operations for retrieving and modifying FooterCategory objects. More...
Public Member Functions | |
| _fromRow (&$row) | |
| categoryExistsByPath ($path, $pressId=null) | |
| deleteById ($categoryId, $pressId=null) | |
| deleteByPressId ($pressId) | |
| deleteObject (&$category) | |
| FooterCategoryDAO () | |
| & | getById ($categoryId, $pressId=null) |
| & | getByPath ($path, $pressId) |
| & | getByPressId ($pressId, $rangeInfo=null) |
| & | getCountByPressId ($pressId) |
| getInsertFooterCategoryId () | |
| getLocaleFieldNames () | |
| & | getNotEmptyByPressId ($pressId, $rangeInfo=null) |
| insertObject (&$category) | |
| newDataObject () | |
| updateLocaleFields (&$category) | |
| updateObject ($category) | |
Operations for retrieving and modifying FooterCategory objects.
Definition at line 19 of file FooterCategoryDAO.inc.php.
| FooterCategoryDAO._fromRow | ( | &$ | row | ) |
Internal function to return a FooterCategory object from a row.
| $row | array |
Definition at line 115 of file FooterCategoryDAO.inc.php.
References newDataObject().
Referenced by getById(), and getByPath().
| FooterCategoryDAO.categoryExistsByPath | ( | $ | path, | |
| $ | pressId = null | |||
| ) |
Check if a category exists with a specified path.
| string | $path the path for the category | |
| int | $pressId the press context (optional) |
Definition at line 85 of file FooterCategoryDAO.inc.php.
| FooterCategoryDAO.deleteById | ( | $ | categoryId, | |
| $ | pressId = null | |||
| ) |
Delete a category by ID.
| $categoryId | int | |
| $pressId | int optional |
Definition at line 208 of file FooterCategoryDAO.inc.php.
Referenced by deleteObject().
| FooterCategoryDAO.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 237 of file FooterCategoryDAO.inc.php.
References deleteObject(), and getByPressId().
| FooterCategoryDAO.deleteObject | ( | &$ | category | ) |
Delete a category.
| $category | FooterCategory |
Definition at line 196 of file FooterCategoryDAO.inc.php.
References deleteById().
Referenced by deleteByPressId().
| FooterCategoryDAO.FooterCategoryDAO | ( | ) |
Constructor
Definition at line 23 of file FooterCategoryDAO.inc.php.
| & FooterCategoryDAO.getById | ( | $ | categoryId, | |
| $ | pressId = null | |||
| ) |
Retrieve a category by ID.
| $categoryId | int | |
| $pressId | int optional |
Definition at line 33 of file FooterCategoryDAO.inc.php.
References _fromRow().
| & FooterCategoryDAO.getByPath | ( | $ | path, | |
| $ | pressId | |||
| ) |
Retrieve a category by path.
| $path | string | |
| $pressId | int |
Definition at line 62 of file FooterCategoryDAO.inc.php.
References _fromRow().
| & FooterCategoryDAO.getByPressId | ( | $ | pressId, | |
| $ | rangeInfo = null | |||
| ) |
Retrieve all categories for a press.
Definition at line 249 of file FooterCategoryDAO.inc.php.
Referenced by deleteByPressId().
| & FooterCategoryDAO.getCountByPressId | ( | $ | pressId | ) |
Retrieve the number of categories for a press.
Definition at line 281 of file FooterCategoryDAO.inc.php.
| FooterCategoryDAO.getInsertFooterCategoryId | ( | ) |
Get the ID of the last inserted category.
Definition at line 300 of file FooterCategoryDAO.inc.php.
Referenced by insertObject().
| FooterCategoryDAO.getLocaleFieldNames | ( | ) |
Get the list of fields for which data can be localized.
Definition at line 133 of file FooterCategoryDAO.inc.php.
| & FooterCategoryDAO.getNotEmptyByPressId | ( | $ | pressId, | |
| $ | rangeInfo = null | |||
| ) |
Retrieve all categories for a press that have links.
Definition at line 265 of file FooterCategoryDAO.inc.php.
| FooterCategoryDAO.insertObject | ( | &$ | category | ) |
Insert a new category.
| $category | FooterCategory |
Definition at line 155 of file FooterCategoryDAO.inc.php.
References getInsertFooterCategoryId(), and updateLocaleFields().
| FooterCategoryDAO.newDataObject | ( | ) |
Construct a new data object corresponding to this DAO.
Definition at line 106 of file FooterCategoryDAO.inc.php.
Referenced by _fromRow().
| FooterCategoryDAO.updateLocaleFields | ( | &$ | category | ) |
Update the localized fields for this table
| $category | object |
Definition at line 141 of file FooterCategoryDAO.inc.php.
Referenced by insertObject(), and updateObject().
| FooterCategoryDAO.updateObject | ( | $ | category | ) |
Update an existing category.
| $category | FooterCategory |
Definition at line 176 of file FooterCategoryDAO.inc.php.
References updateLocaleFields().
1.7.1