summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspiderr <spider@viovio.com>2012-05-06 13:22:14 -0400
committerspiderr <spider@viovio.com>2012-05-06 13:22:14 -0400
commit95cf2d8d279536e53ad7ad8e61965327f77c00c0 (patch)
tree6d20fe2e48eed27d09418cdb4c7a0f0316664e0c
parent5f4c888c3d7dfca46fc53015ebe8d437be8e7fd6 (diff)
downloadnewsletters-95cf2d8d279536e53ad7ad8e61965327f77c00c0.tar.gz
newsletters-95cf2d8d279536e53ad7ad8e61965327f77c00c0.tar.bz2
newsletters-95cf2d8d279536e53ad7ad8e61965327f77c00c0.zip
replace all PHP4 style constructors with __construct; replace calls to base class constructors with parent::__construct()
-rw-r--r--BitNewsletter.php4
-rw-r--r--BitNewsletterEdition.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/BitNewsletter.php b/BitNewsletter.php
index f479c96..64fb46b 100644
--- a/BitNewsletter.php
+++ b/BitNewsletter.php
@@ -31,8 +31,8 @@ define( 'BITNEWSLETTER_CONTENT_TYPE_GUID', 'bitnewsletter' );
* @package newsletters
*/
class BitNewsletter extends LibertyContent {
- function BitNewsletter( $pNlId=NULL, $pContentId=NULL ) {
- parent::LibertyContent();
+ function __construct( $pNlId=NULL, $pContentId=NULL ) {
+ parent::__construct();
$this->registerContentType( BITNEWSLETTER_CONTENT_TYPE_GUID, array(
'content_type_guid' => BITNEWSLETTER_CONTENT_TYPE_GUID,
'content_name' => 'Newsletter',
diff --git a/BitNewsletterEdition.php b/BitNewsletterEdition.php
index 4327923..b16c25a 100644
--- a/BitNewsletterEdition.php
+++ b/BitNewsletterEdition.php
@@ -30,8 +30,8 @@ define( 'BITNEWSLETTEREDITION_CONTENT_TYPE_GUID', 'bitnewsletteredn' );
* @package newsletters
*/
class BitNewsletterEdition extends LibertyMime {
- function BitNewsletterEdition( $pEditionId=NULL, $pContentId=NULL, $pNlId=NULL ) {
- parent::LibertyContent();
+ function __construct( $pEditionId=NULL, $pContentId=NULL, $pNlId=NULL ) {
+ parent::__construct();
$this->registerContentType( BITNEWSLETTEREDITION_CONTENT_TYPE_GUID, array(
'content_type_guid' => BITNEWSLETTEREDITION_CONTENT_TYPE_GUID,
'content_name' => 'Edition',