Public Member Functions

SocialMediaDAO Class Reference
[Press]

Operations for retrieving and modifying SocialMedia objects. More...

List of all members.

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)

Detailed Description

Operations for retrieving and modifying SocialMedia objects.

See also:
SocialMedia

Definition at line 19 of file SocialMediaDAO.inc.php.


Member Function Documentation

SocialMediaDAO._fromRow ( &$  row  ) 

Internal function to return a SocialMedia object from a row.

Parameters:
$row array
Returns:
SocialMedia

Definition at line 69 of file SocialMediaDAO.inc.php.

References newDataObject().

Referenced by getById().

SocialMediaDAO.deleteById ( socialMediaId,
pressId = null 
)

Delete an object by ID.

Parameters:
$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.

Parameters:
$pressId int

Definition at line 191 of file SocialMediaDAO.inc.php.

References deleteObject(), and getByPressId().

SocialMediaDAO.deleteObject ( &$  socialMedia  ) 

Delete an object.

Parameters:
$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.

Parameters:
$socialMediaId int
$pressId int optional
Returns:
SocialMedia

Definition at line 33 of file SocialMediaDAO.inc.php.

References _fromRow().

& SocialMediaDAO.getByPressId ( pressId,
rangeInfo = null 
)

Retrieve all media objects for a press.

Parameters:
$pressId int
Returns:
DAOResultFactory containing SocialMedia objects

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.

Parameters:
int $pressId
Returns:
DAOResultFactory containing SocialMedia objects

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.

Parameters:
int $pressId
Returns:
DAOResultFactory containing SocialMedia objects

Definition at line 244 of file SocialMediaDAO.inc.php.

SocialMediaDAO.getInsertSocialMediaId (  ) 

Get the ID of the last inserted link.

Returns:
int

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.

Returns:
array

Definition at line 88 of file SocialMediaDAO.inc.php.

SocialMediaDAO.insertObject ( &$  socialMedia  ) 

Insert a new object.

Parameters:
$socialMedia SocialMedia
Returns:
int ID of the inserted link.

Definition at line 110 of file SocialMediaDAO.inc.php.

References getInsertSocialMediaId(), and updateLocaleFields().

SocialMediaDAO.newDataObject (  ) 

Construct a new data object corresponding to this DAO.

Returns:
SocialMedia

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.

Parameters:
$socialMedia object

Definition at line 96 of file SocialMediaDAO.inc.php.

Referenced by insertObject(), and updateObject().

SocialMediaDAO.updateObject ( socialMedia  ) 

Update an existing link.

Parameters:
$socialMedia SocialMedia

Definition at line 132 of file SocialMediaDAO.inc.php.

References updateLocaleFields().


The documentation for this class was generated from the following file: