Operations for retrieving and modifying SocialMedia objects. More...
Public Member Functions | |
| _fromRow (&$row) | |
| deleteById ($socialMediaId, $pressId=null) | |
| deleteByPressId ($pressId) | |
| deleteObject (&$socialMedia) | |
| & | getById ($socialMediaId, $pressId=null) |
| & | getByPressId ($pressId, $rangeInfo=null) |
| & | getEnabledForCatalogByPressId ($pressId, $rangeInfo=null) |
| & | getEnabledForPressByPressId ($pressId, $rangeInfo=null) |
| getInsertSocialMediaId () | |
| getLocaleFieldNames () | |
| insertObject (&$socialMedia) | |
| newDataObject () | |
| SocialMediaDAO () | |
| updateLocaleFields (&$socialMedia) | |
| updateObject ($socialMedia) | |
Operations for retrieving and modifying SocialMedia objects.
Definition at line 19 of file SocialMediaDAO.inc.php.
| SocialMediaDAO._fromRow | ( | &$ | row | ) |
Internal function to return a SocialMedia object from a row.
| $row | array |
Definition at line 69 of file SocialMediaDAO.inc.php.
References newDataObject().
Referenced by getById().
| SocialMediaDAO.deleteById | ( | $ | socialMediaId, | |
| $ | pressId = null | |||
| ) |
Delete an object by ID.
| $socialMediaId | int | |
| $pressId | int optional |
Definition at line 166 of file SocialMediaDAO.inc.php.
Referenced by deleteObject().
| SocialMediaDAO.deleteByPressId | ( | $ | pressId | ) |
Delete social media items 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 191 of file SocialMediaDAO.inc.php.
References deleteObject(), and getByPressId().
| SocialMediaDAO.deleteObject | ( | &$ | socialMedia | ) |
Delete an object.
| $socialMedia | SocialMedia |
Definition at line 154 of file SocialMediaDAO.inc.php.
References deleteById().
Referenced by deleteByPressId().
| & SocialMediaDAO.getById | ( | $ | socialMediaId, | |
| $ | pressId = null | |||
| ) |
Retrieve a media object by ID.
| $socialMediaId | int | |
| $pressId | int optional |
Definition at line 33 of file SocialMediaDAO.inc.php.
References _fromRow().
| & SocialMediaDAO.getByPressId | ( | $ | pressId, | |
| $ | rangeInfo = null | |||
| ) |
Retrieve all media objects for a press.
| $pressId | int |
Definition at line 204 of file SocialMediaDAO.inc.php.
Referenced by deleteByPressId().
| & SocialMediaDAO.getEnabledForCatalogByPressId | ( | $ | pressId, | |
| $ | rangeInfo = null | |||
| ) |
Retrieve the media objects for a press that are set to be used in the catalog.
| int | $pressId |
Definition at line 224 of file SocialMediaDAO.inc.php.
| & SocialMediaDAO.getEnabledForPressByPressId | ( | $ | pressId, | |
| $ | rangeInfo = null | |||
| ) |
Retrieve the media objects for a press that are set to be used on the press home page.
| int | $pressId |
Definition at line 244 of file SocialMediaDAO.inc.php.
| SocialMediaDAO.getInsertSocialMediaId | ( | ) |
Get the ID of the last inserted link.
Definition at line 263 of file SocialMediaDAO.inc.php.
Referenced by insertObject().
| SocialMediaDAO.getLocaleFieldNames | ( | ) |
Get the list of fields for which data can be localized.
Definition at line 88 of file SocialMediaDAO.inc.php.
| SocialMediaDAO.insertObject | ( | &$ | socialMedia | ) |
Insert a new object.
| $socialMedia | SocialMedia |
Definition at line 110 of file SocialMediaDAO.inc.php.
References getInsertSocialMediaId(), and updateLocaleFields().
| SocialMediaDAO.newDataObject | ( | ) |
Construct a new data object corresponding to this DAO.
Definition at line 60 of file SocialMediaDAO.inc.php.
Referenced by _fromRow().
| SocialMediaDAO.SocialMediaDAO | ( | ) |
Constructor
Definition at line 23 of file SocialMediaDAO.inc.php.
| SocialMediaDAO.updateLocaleFields | ( | &$ | socialMedia | ) |
Update the localized fields for this object.
| $socialMedia | object |
Definition at line 96 of file SocialMediaDAO.inc.php.
Referenced by insertObject(), and updateObject().
| SocialMediaDAO.updateObject | ( | $ | socialMedia | ) |
Update an existing link.
| $socialMedia | SocialMedia |
Definition at line 132 of file SocialMediaDAO.inc.php.
References updateLocaleFields().
1.7.1