Combu Server  3.1.1
PHP API Documentation
Public Member Functions | Static Public Member Functions | Data Fields
NewsletterLog Class Reference
Inheritance diagram for NewsletterLog:
DataClass

Public Member Functions

 __construct ($src=null, $stripSlashes=false)
 
 Save ()
 
 Delete ()
 
- Public Member Functions inherited from DataClass
 Save ()
 
 Delete ()
 
 ToJson ()
 
 ToArray ()
 

Static Public Member Functions

static Load ($idNewsletter, $limit=null, $offset=null, &$count=null, $returnArray=false)
 
- Static Public Member Functions inherited from DataClass
static GetTableName ($class)
 
static LoadRecords ($query, $returnedClass="")
 
static CountRecords ($tableName, $filter=null)
 
static TruncateTable ($tableName)
 
static TruncateClass ($class)
 

Data Fields

const TABLE_NAME = "NewsletterLog"
 
 $Id = 0
 
 $IdNewsletter = 0
 
 $IdAccount = 0
 
 $Sent = 0
 
 $DateCreation = ""
 
 $Message = ""
 

Additional Inherited Members

- Protected Member Functions inherited from DataClass
 _loadFilter ($tableName, $filter)
 
 _loadByRow ($row, $stripSlashes=false, $callbackOnExists=false)
 
 _Delete ($tableName, $filter=null)
 
- Static Protected Member Functions inherited from DataClass
static _count ($tableName, $filter=null)
 
static _load ($tableName, $returnedClass="", $where="", $order=null, $limit=null, $offset=null, &$count=null)
 
static _loadEx ($select, $from, $returnedClass="", $where="", $order=null, $limit=null, $offset=null, &$count=null, $debug=false)
 
static _loadQuery ($query, $returnedClass="")
 

Detailed Description

Class to handle Newsletter's Log

Author
Skared Creations

Definition at line 10 of file NewsletterLog.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $src = null,
  $stripSlashes = false 
)

Contructor

Definition at line 24 of file NewsletterLog.php.

Member Function Documentation

◆ Delete()

Delete ( )

Delete the record from the database

Returns
bool Returns TRUE on success

Definition at line 82 of file NewsletterLog.php.

◆ Load()

static Load (   $idNewsletter,
  $limit = null,
  $offset = null,
$count = null,
  $returnArray = false 
)
static

Get the registered inventory items

Parameters
int$idNewsletterIdentifier of the Newsletter
int$limitMax number of results (for paged results)
int$offsetOffset number of results (for paged results)
int$countWill be set to the total count of results
boolean$returnArrayIf TRUE then it will return associative arrays else objects
Returns
array Returns the array of records

Definition at line 47 of file NewsletterLog.php.

◆ Save()

Save ( )

Save the record in the database

Returns
bool Returns TRUE on success

Definition at line 57 of file NewsletterLog.php.

Field Documentation

◆ $DateCreation

$DateCreation = ""

Definition at line 18 of file NewsletterLog.php.

◆ $Id

$Id = 0

Definition at line 14 of file NewsletterLog.php.

◆ $IdAccount

$IdAccount = 0

Definition at line 16 of file NewsletterLog.php.

◆ $IdNewsletter

$IdNewsletter = 0

Definition at line 15 of file NewsletterLog.php.

◆ $Message

$Message = ""

Definition at line 19 of file NewsletterLog.php.

◆ $Sent

$Sent = 0

Definition at line 17 of file NewsletterLog.php.

◆ TABLE_NAME

const TABLE_NAME = "NewsletterLog"

Definition at line 12 of file NewsletterLog.php.