Commit fe6cdf36 authored by Vincent Sherwood's avatar Vincent Sherwood Committed by Ralf Becker

ZP-805 Renamed constructors to __construct(). And updated calls to parent...

ZP-805 Renamed constructors to __construct(). And updated calls to parent class creators for classes Recurrence and TaskRecurrence. Released under the Affero GNU General Public License (AGPL) version 3.
parent 255d8878
......@@ -75,7 +75,7 @@ class ExportChangesICS implements IExportChanges{
* @access public
* @throws StatusException
*/
public function ExportChangesICS($session, $store, $folderid = false) {
public function __construct($session, $store, $folderid = false) {
// Open a hierarchy or a contents exporter depending on whether a folderid was specified
$this->session = $session;
$this->folderid = $folderid;
......
......@@ -54,7 +54,7 @@ class ICalParser{
*
* @access public
*/
public function ICalParser(&$store, &$props){
public function __construct(&$store, &$props){
$this->props = $props;
}
......
......@@ -86,7 +86,7 @@ class ImportChangesICS implements IImportChanges {
* @access public
* @throws StatusException
*/
public function ImportChangesICS($session, $store, $folderid = false) {
public function __construct($session, $store, $folderid = false) {
$this->session = $session;
$this->store = $store;
$this->folderid = $folderid;
......
......@@ -87,7 +87,7 @@ class BackendKopano implements IBackend, ISearchProvider {
*
* @access public
*/
public function BackendKopano() {
public function __construct() {
$this->session = false;
$this->store = false;
$this->storeName = false;
......
......@@ -91,7 +91,7 @@
* @param resource $message the MAPI (appointment) message
* @param array $properties the list of MAPI properties the message has.
*/
function BaseRecurrence($store, $message)
function __construct($store, $message)
{
$this->store = $store;
......
......@@ -68,7 +68,7 @@ class FreeBusyPublish {
*/
function FreeBusyPublish($session, $store, $calendar, $entryid)
function __construct($session, $store, $calendar, $entryid)
{
$properties["entryid"] = PR_ENTRYID;
$properties["parent_entryid"] = PR_PARENT_ENTRYID;
......
......@@ -131,7 +131,7 @@ class Meetingrequest {
* - Sending meeting requests to resources, resource availability checking and resource freebusy updates
*/
function Meetingrequest($store, $message, $session = false, $enableDirectBooking = true)
function __construct($store, $message, $session = false, $enableDirectBooking = true)
{
$this->store = $store;
$this->message = $message;
......
......@@ -92,7 +92,7 @@
* @param resource $store MAPI Message Store Object
* @param resource $message the MAPI (appointment) message
*/
function Recurrence($store, $message)
function __construct($store, $message)
{
$properties = array();
......@@ -137,7 +137,7 @@
$this->proptags = getPropIdsFromStrings($store, $properties);
parent::BaseRecurrence($store, $message);
parent::__construct($store, $message);
}
/**
......
......@@ -55,7 +55,7 @@
*/
var $tz = false;
function TaskRecurrence($store, $message)
function __construct($store, $message)
{
$this->store = $store;
$this->message = $message;
......@@ -104,7 +104,7 @@
$this->proptags = getPropIdsFromStrings($store, $properties);
parent::BaseRecurrence($store, $message, $properties);
parent::__construct($store, $message, $properties);
}
/**
......
......@@ -130,7 +130,7 @@
* @param $message message MAPI Message to which the task request referes (can be an email or a task)
* @param $session session MAPI Session which is used to open tasks folders for delegated task requests or responses
*/
function TaskRequest($store, $message, $session) {
function __construct($store, $message, $session) {
$this->store = $store;
$this->message = $message;
$this->session = $session;
......
......@@ -74,7 +74,7 @@ class PHPWrapper {
* @access public
* @return
*/
public function PHPWrapper($session, $store, $importer, $folderid) {
public function __construct($session, $store, $importer, $folderid) {
$this->importer = &$importer;
$this->store = $store;
$this->mapiprovider = new MAPIProvider($session, $this->store);
......
......@@ -58,7 +58,7 @@ class MAPIProvider {
*
* @access public
*/
function MAPIProvider($session, $store) {
function __construct($session, $store) {
$this->session = $session;
$this->store = $store;
}
......
......@@ -75,7 +75,7 @@ class TNEFParser {
*
* @access public
*/
public function TNEFParser(&$store, &$props) {
public function __construct(&$store, &$props) {
$this->store = $store;
$this->props = $props;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment