Public Member Functions

FooterLinkDAO Class Reference
[Press]

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

List of all members.

Public Member Functions

 _fromRow (&$row)
 deleteById ($footerLinkId, $pressId=null)
 deleteByPressId ($pressId)
 deleteObject (&$footerLink)
 FooterLinkDAO ()
getByCategoryId ($categoryId, $pressId=null, $rangeInfo=null)
getById ($footerLinkId, $pressId=null)
 getInsertFooterLinkId ()
 getLargestCategoryTotalByPressId ($pressId)
 getLocaleFieldNames ()
 insertObject (&$footerLink)
 newDataObject ()
 updateLocaleFields (&$footerLink)
 updateObject ($footerLink)

Detailed Description

Operations for retrieving and modifying FooterLink objects.

See also:
FooterLink

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


Member Function Documentation

FooterLinkDAO._fromRow ( &$  row  ) 

Internal function to return an FooterLink object from a row.

Parameters:
$row array
Returns:
FooterLink

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

References newDataObject().

Referenced by getById().

FooterLinkDAO.deleteById ( footerLinkId,
pressId = null 
)

Delete a footer link by ID.

Parameters:
$footerLinkId int
$pressId int optional

Definition at line 166 of file FooterLinkDAO.inc.php.

Referenced by deleteObject().

FooterLinkDAO.deleteByPressId ( pressId  ) 

Delete footer link 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 193 of file FooterLinkDAO.inc.php.

References deleteObject().

FooterLinkDAO.deleteObject ( &$  footerLink  ) 

Delete a link.

Parameters:
$footerLink FooterLink

Definition at line 154 of file FooterLinkDAO.inc.php.

References deleteById().

Referenced by deleteByPressId().

FooterLinkDAO.FooterLinkDAO (  ) 

Constructor

Definition at line 23 of file FooterLinkDAO.inc.php.

& FooterLinkDAO.getByCategoryId ( categoryId,
pressId = null,
rangeInfo = null 
)

Retrieve all footerlinks for a footer category.

Returns:
DAOResultFactory containing FooterLink objects

Definition at line 205 of file FooterLinkDAO.inc.php.

& FooterLinkDAO.getById ( footerLinkId,
pressId = null 
)

Retrieve a footer link by ID.

Parameters:
$footerLinkId int
$pressId int optional
Returns:
FooterLink

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

References _fromRow().

FooterLinkDAO.getInsertFooterLinkId (  ) 

Get the ID of the last inserted link.

Returns:
int

Definition at line 225 of file FooterLinkDAO.inc.php.

Referenced by insertObject().

FooterLinkDAO.getLargestCategoryTotalByPressId ( pressId  ) 

Retrieve the maximum number of links in any category, by press id.

Parameters:
int $pressId
Returns:
int

Definition at line 234 of file FooterLinkDAO.inc.php.

FooterLinkDAO.getLocaleFieldNames (  ) 

Get the list of fields for which data can be localized.

Returns:
array

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

FooterLinkDAO.insertObject ( &$  footerLink  ) 

Insert a new footer link.

Parameters:
$footerLink FooterLink
Returns:
int ID of the inserted link.

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

References getInsertFooterLinkId(), and updateLocaleFields().

FooterLinkDAO.newDataObject (  ) 

Construct a new data object corresponding to this DAO.

Returns:
FooterLink

Definition at line 60 of file FooterLinkDAO.inc.php.

Referenced by _fromRow().

FooterLinkDAO.updateLocaleFields ( &$  footerLink  ) 

Update the localized fields for this table

Parameters:
$footerLink object

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

Referenced by insertObject(), and updateObject().

FooterLinkDAO.updateObject ( footerLink  ) 

Update an existing link.

Parameters:
$footerLink FooterLink

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

References updateLocaleFields().


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