PHP Class Pommo_Mailing_Template, poMMo

Show file Open project: soonick/poMMo Class Usage Examples

Public Methods

Method Description
add ( &$in ) returns the database ID of the added mailing
delete ( &$id ) returns the # of deleted subscribers (int). 0 (false) if none.
get ( $p = [] ) returns an array of mailings. Array key(s) correlates to template ID.
getDescriptions ( $p = [] ) returns an array of mailings. Array key(s) correlates to template ID.
getNames ( $p = [] ) returns an array of mailings. Array key(s) correlates to template ID.
make ( $in = [] ) return a template object (array)
makeDB ( &$row ) return a template object (array)
validate ( &$in ) returns true if template ($in) is valid, false if not

Method Details

add() public method

returns the database ID of the added mailing
public add ( &$in )

delete() public method

returns the # of deleted subscribers (int). 0 (false) if none.
public delete ( &$id )

get() public method

returns an array of mailings. Array key(s) correlates to template ID.
public get ( $p = [] )

getDescriptions() public method

returns an array of mailings. Array key(s) correlates to template ID.
public getDescriptions ( $p = [] )

getNames() public method

returns an array of mailings. Array key(s) correlates to template ID.
public getNames ( $p = [] )

make() public method

return a template object (array)
public make ( $in = [] )

makeDB() public method

return a template object (array)
public makeDB ( &$row )

validate() public method

returns true if template ($in) is valid, false if not
public validate ( &$in )