function __construct() { // Strong type vars... // Any normal programming language calls the constructor before filling vars.... // ... except PHP :-) $this->until = (double) $this->until; $this->enabled = $this->enabled == 1; $this->pageId = $this->calendarId = (int) $this->calendarId; $this->locationId = (int) $this->locationId; parent::__construct(); }
function __construct() { // Strong type vars... // Any normal programming language calls the constructor before filling vars.... // ... except PHP :-) $this->polyId = (int) $this->polyId; $this->layer = (int) $this->layer; $this->color = (int) $this->color; $this->isShape = $this->isShape == 1; $this->uselayercolor = $this->uselayercolor == 1; $this->enabled = $this->enabled == 1; $this->deleted = $this->deleted == 1; parent::__construct(); }
function __construct() { // Strong type vars... // Any normal programming language calls the constructor before filling vars.... // ... except PHP :-) $this->markerId = (int) $this->markerId; $this->layer = (double) $this->layer; $this->lat = (double) $this->lat; $this->lng = (double) $this->lng; $this->color = (int) $this->color; $this->iconsize = (int) $this->iconsize; $this->enabled = $this->enabled == 1; $this->uselayercolor = $this->uselayercolor == 1; $this->deleted = $this->deleted == 1; parent::__construct(); }
function __construct() { // Strong type vars... // Any normal programming language calls the constructor before filling vars.... // ... except PHP :-) $this->userId = (int) $this->userId; $this->activated = (int) $this->activated == 1; $this->itemType = (int) $this->itemType; $this->registrationdate = (double) strtotime($this->registrationdate); $this->lastlogin = (double) strtotime($this->lastlogin); if (isset($this->usergroupsstr)) { $this->usergroups = explode(',', $this->usergroupsstr); foreach ($this->usergroups as $group => $val) { settype($this->usergroups[$group], 'int'); } } unset($this->usergroupsstr); parent::__construct(); }