Exemple #1
0
 /**
  * Privileges::__construct()
  *
  * @return
  */
 function __construct()
 {
     parent::__construct();
     $this->p_userId = -1;
     $this->p_domainId = -1;
     $this->p_maxPrivilege = 0;
 }
Exemple #2
0
 /**
  * UnitOfMeasure::__construct()
  *
  * @return
  */
 function __construct()
 {
     parent::__construct();
     $this->p_unitOfMeasureId = 0;
     $this->p_unitOfMeasureName = "";
     $this->p_unitOfMeasureDescription = "";
     $this->p_unitOfMeasureSymbol = "";
 }
Exemple #3
0
 function __construct()
 {
     parent::__construct();
     $this->p_actualIntervals = 0;
     $this->p_expectedIntervals = 0;
     $this->p_fromDate = "";
     $this->p_percentageFilled = 0;
     $this->p_percentageUptime = 0;
     $this->p_toDate = "";
 }
Exemple #4
0
 function __construct($ID = 0, $name = "", $createdDate = 0, $createdBy = 0, $updatedDate = 0, $updatedBy = 0)
 {
     parent::__construct();
     $this->p_ID = $ID;
     $this->p_name = $name;
     $this->p_createdDate = $createdDate ? new CrsDate($createdDate) : null;
     $this->p_createdBy = $createdBy;
     $this->p_updatedDate = $updatedDate ? new CrsDate($updatedDate) : null;
     $this->p_updatedBy = $updatedBy;
 }
Exemple #5
0
 function __construct($ID = 0, $name = "", $description = "", $note = "", $level = 0, $createdDate = 0, $createdBy = 0, $updatedDate = 0, $updatedBy = 0)
 {
     parent::__construct();
     $this->p_ID = $ID;
     $this->p_name = $name;
     $this->p_description = $description;
     $this->p_note = $note;
     $this->p_level = $level;
     $this->p_createdDate = $createdDate ? new CrsDate($createdDate) : null;
     $this->p_createdBy = $createdBy;
     $this->p_updatedDate = $updatedDate ? new CrsDate($updatedDate) : null;
     $this->p_updatedBy = $updatedBy;
 }
Exemple #6
0
 function __construct($ID = 0, $typeID = 0, $name = "", $description = "", $assetIdentifier = "", $createdDate = 0, $createdBy = 0, $updatedDate = 0, $updatedBy = 0, $flag = false)
 {
     parent::__construct();
     $this->p_ID = $ID;
     $this->p_typeID = $typeID;
     $this->p_name = $name;
     $this->p_description = $description;
     $this->p_assetIdentifier = $assetIdentifier;
     $this->p_createdDate = $createdDate ? new CrsDate($createdDate) : null;
     $this->p_createdBy = $createdBy;
     $this->p_updatedDate = $updatedDate ? new CrsDate($updatedDate) : null;
     $this->p_updatedBy = $updatedBy;
     $this->p_flag = $flag;
 }
Exemple #7
0
 function __construct($ID = 0, $object = null, $contactUse = null, $priority = null, $contactValue = null, $isInactive = 0, $createdDate = 0, $createdBy = 0, $updatedDate = 0, $updatedBy = 0)
 {
     parent::__construct();
     $this->p_ID = $ID;
     $this->p_object = $object ? clone $object : null;
     $this->p_contactUse = $contactUse ? clone $contactUse : null;
     $this->p_priority = $priority ? clone $priority : null;
     $this->p_contactValue = $contactValue ? clone $contactValue : null;
     $this->p_isInactive = $isInactive;
     $this->p_createdDate = $createdDate ? new CrsDate($createdDate) : null;
     $this->p_createdBy = $createdBy;
     $this->p_updatedDate = $updatedDate ? new CrsDate($updatedDate) : null;
     $this->p_updatedBy = $updatedBy;
 }
Exemple #8
0
 /**
  * DailyProfileData::__construct()
  *
  * @param integer $soMonth
  * @param integer $eoMonth
  * @return
  */
 function __construct($soMonth = 0, $eoMonth = 0)
 {
     parent::__construct();
     $this->p_maximumValue = -1.0;
     $this->p_lastDay = 0;
     $this->p_firstDay = 32;
     if ($soMonth && $eoMonth) {
         $this->Init($soMonth, $eoMonth);
     }
 }
Exemple #9
0
 /**
  * Preferences::__construct()
  *
  * @return
  */
 function __construct()
 {
     parent::__construct();
     $this->p_userId = -1;
     $this->p_maxPreference = 0;
 }
Exemple #10
0
 /**
  * Domain::__construct()
  *
  * @param integer $id
  * @param string $name
  * @param string $description
  * @return
  */
 function __construct($id = -1, $name = "", $description = "", $logoPath = "", $eventSummaryLink = "", $tag = "", $enrollingParticipantIdentifier = "")
 {
     parent::__construct();
     $this->p_id = -1;
     $this->p_name = "";
     $this->p_description = "";
     if ($id > 0) {
         $this->Load($id, $name, $description, $logoPath, $eventSummaryLink, $tag, $enrollingParticipantIdentifier);
     }
 }
Exemple #11
0
 /**
  * TimeZone::__construct()
  *
  * @param mixed $timeZone
  * @return
  */
 function __construct($timeZone = null)
 {
     parent::__construct();
     //echo "In TimeZone __construct({$timeZone})...<br>\n";
     $this->InitQueries();
     if (!isset($timeZone)) {
         //echo "Parameter is not set...<br>\n";
         $this->Clear();
     } elseif (is_string($timeZone)) {
         //echo "Parameter is string...<br>\n";
         if ($this->isPersistent()) {
             $this->Load($timeZone);
         } else {
             $this->Clear();
             $this->p_name = $timeZone;
             if (strlen($timeZone)) {
                 $this->p_getBy = self::gbName;
             }
         }
     } elseif (is_int($timeZone)) {
         //echo "Parameter is integer...<br>\n";
         if ($this->isPersistent()) {
             $this->Load($timeZone);
         } else {
             $this->Clear();
             $this->p_id = $timeZone;
             if ($timeZone) {
                 $this->p_getBy = self::gbPrimaryKey;
             }
         }
     } elseif (is_object($timeZone)) {
         $this->Copy($timeZone);
     }
 }
Exemple #12
0
 /**
  * Alarms::__construct()
  *
  * @return
  */
 function __construct()
 {
     parent::__construct();
     $this->p_pointId = 0;
     $this->p_channelId = 0;
     $this->p_length = 0;
 }
Exemple #13
0
 function __construct($objectId, $channelId, $channelName, $channelDescription, $unitOfMeasure, $pulseConversionFactor, $drawLimit, $drawLimitUnitOfMeasure, $isGenerator, $assetIdentifier, $retirementDate, $participationTypeID, $participationTypeDescription, $committedReduction)
 {
     parent::__construct();
     $this->p_objectId = $objectId;
     $this->p_channelId = $channelId;
     $this->p_channelName = $channelName;
     $this->p_channelDescription = $channelDescription;
     $this->p_unitOfMeasure = clone $unitOfMeasure;
     $this->p_pulseConversionFactor = $pulseConversionFactor;
     $this->p_drawLimit = $drawLimit;
     $this->p_drawLimitUnitOfMeasure = clone $drawLimitUnitOfMeasure;
     $this->p_isGenerator = $isGenerator;
     $this->p_assetIdentifier = $assetIdentifier;
     $this->p_retirementDate = $retirementDate;
     $this->p_participationTypeID = $participationTypeID;
     $this->p_participationTypeDescription = $participationTypeDescription;
     $this->p_committedReduction = $committedReduction;
 }
Exemple #14
0
 function __construct()
 {
     parent::__construct();
     $this->clear();
 }
Exemple #15
0
 function __construct($ID = 0, $emailToAddress = "", $emailFromAddress = "", $emailFromName = "", $emailReplyToAddress = "", $emailSubject = "", $emailBody = "", $emailAttachments = "", $sendAfter = 0, $sendBefore = 0, $isSent = 0, $messageIdentifier = "", $createdDate = 0, $createdBy = 0, $updatedDate = 0, $updatedBy = 0)
 {
     parent::__construct();
     $this->p_ID = $ID;
     $this->p_emailToAddress = $emailToAddress;
     $this->p_emailFromAddress = $emailFromAddress;
     $this->p_emailFromName = $emailFromName;
     $this->p_emailReplyToAddress = $emailReplyToAddress;
     $this->p_emailSubject = $emailSubject;
     $this->p_emailBody = $emailBody;
     $this->p_emailAttachments = $emailAttachments;
     $this->p_sendAfter = $sendAfter ? new CrsDate($sendAfter) : null;
     $this->p_sendBefore = $sendBefore ? new CrsDate($sendBefore) : null;
     $this->p_isSent = $isSent;
     $this->p_messageIdentifier = $messageIdentifier;
     $this->p_createdDate = $createdDate ? new CrsDate($createdDate) : null;
     $this->p_createdBy = $createdBy;
     $this->p_updatedDate = $updatedDate ? new CrsDate($updatedDate) : null;
     $this->p_updatedBy = $updatedBy;
 }
Exemple #16
0
 function __construct($domainID, $eventDate)
 {
     parent::__construct();
     $this->p_domainID = $domainID;
     $this->p_eventDate = $eventDate;
 }
Exemple #17
0
 function __construct($domainID, $userID)
 {
     parent::__construct();
     $this->p_domainID = $domainID;
     $this->p_userID = $userID;
 }
Exemple #18
0
 function __construct($ID = 0, $contactValueTypeID = 0, $contactValueSubtypeID = 0, $contactOwner = null, $contactValue = "", $isInactive = false, $createdDate = 0, $createdBy = 0, $updatedDate = 0, $updatedBy = 0)
 {
     parent::__construct();
     $this->p_ID = $ID;
     $this->p_contactValueTypeID = $contactValueTypeID;
     $this->p_contactValueSubtypeID = $contactValueSubtypeID;
     $this->p_contactOwner = $contactOwner ? clone $contactOwner : null;
     $this->p_contactValue = $contactValue;
     $this->p_isInactive = $isInactive;
     $this->p_createdDate = $createdDate ? new CrsDate($createdDate) : null;
     $this->p_createdBy = $createdBy;
     $this->p_updatedDate = $updatedDate ? new CrsDate($updatedDate) : null;
     $this->p_updatedBy = $updatedBy;
     $this->p_isAltered = $this->p_ID > 0 || $this->p_contactValueTypeID > 0 || $this->p_contactValueSubtypeID > 0 || isset($this->p_contactOwner) || $this->p_contactValue > "";
 }
Exemple #19
0
 /**
  * IntervalValueSets::__construct()
  *
  * @return
  */
 function __construct()
 {
     parent::__construct();
     $this->p_intervalSetBaseDate = "";
     $this->p_pointObjectId = -1;
     $pointID = -1;
     $this->p_adjustmentAmount = 0.0;
     $this->p_isAdjustedBaseline = false;
 }
Exemple #20
0
 function __construct()
 {
     parent::__construct();
     //$this->refresh();
     $this->clear();
 }
Exemple #21
0
 /**
  * Points::__construct()
  *
  * @param mixed $oUser
  * @param mixed $baseDate
  * @param mixed $dateSpan
  * @return
  */
 function __construct($oUser, $baseDate, $dateSpan)
 {
     parent::__construct();
     $this->p_user = clone $oUser;
     $this->p_date = new CrsDate($baseDate);
     $this->p_dateSpan = $dateSpan;
     $this->aPoint = new MeterPoint();
     $this->Refresh();
 }
Exemple #22
0
 /**
  * MeterPoint::construct__()
  *
  * @return
  */
 function construct__()
 {
     parent::__construct();
     $this->p_id = 0;
     $this->p_name = "";
     $this->p_description = "";
     $this->p_maximumChannelId = 0;
     $this->p_isInactive = false;
     $this->p_assetIdentifier = "";
     $this->p_serialNumber = "";
     $this->p_timeZone = new TimeZone();
     $this->p_readTimeOffset = new TimeSpan("0.00:00:00.000");
     $this->p_readInterval = 0;
     $this->p_isGenerator = false;
     $this->p_isAggregate = false;
     $this->p_isChecked = false;
     $this->p_isAutoEventGenerated = false;
     $this->p_isDemo = false;
     $this->p_isEnabled = false;
     $this->p_createdBy = 0;
     $this->p_updatedBy = 0;
     $this->p_committedReduction = 0.0;
     $this->p_zone = "";
     $this->p_zoneId = 0;
     $this->p_displayPriceDescription = "";
     $this->p_maximumDailyDisplayPrice = 0.0;
     $this->p_currentDisplayPrice = 0.0;
     $this->p_settlementPriceDescription = "";
     $this->p_maximumDailySettlementPrice = 0.0;
     $this->p_currentSettlementPrice = 0.0;
     $this->p_lastRead = 0;
     $this->p_currentAverage = 0.0;
 }
Exemple #23
0
 /**
  * User::__construct()
  *
  * @return
  */
 function __construct()
 {
     parent::__construct();
     $this->p_id = 0;
     $this->p_userMame = "";
     $this->p_fullName = "";
     $this->p_isUserChangeable = false;
     $this->p_isExpiring = false;
     $this->p_expirationDate = 0;
     $this->p_expirationWarnings = 0;
     $this->p_timeZoneID = 0;
     $this->p_primaryEmailAddress = "";
     $this->p_primaryPhoneNumber = "";
     $this->p_primaryZipCode = "";
 }
Exemple #24
0
 /**
  * PointChannels::__construct()
  *
  * @return
  */
 function __construct()
 {
     parent::__construct();
     $this->p_length = 0;
 }
Exemple #25
0
 function __construct()
 {
     parent::__construct();
 }