public function __construct($this_id = null, $this_setting_name = null, $this_setting_value = null) { // Run parent constructor parent::__construct(); // Full constructor: use input vars to set up property values of this object if (isset($this_id) && isset($this_setting_name) && isset($this_setting_value)) { $this->Id = $this_id; $this->SettingName = $this_setting_name; $this->SettingValue = $this_setting_value; } elseif (isset($this_id)) { // ID constructor: get values from database and populate property values // Retrieve this row $q = "SELECT * FROM setting WHERE id = ?"; $id = intval($this_id); $r = parent::returnResultSet($q, $id); $hasRow = false; // Set property values to values in result set foreach ($r as $l) { $this->Id = $l->id; $this->SettingName = $l->setting_name; $this->SettingValue = $l->setting_value; $hasRow = true; } // Make sure there was a row returned; if not, set ID to -1 to indicate a bad object if (!$hasRow) { $this->Id = -1; } } else { $this->Id = 0; $this->SettingName = ""; $this->SettingValue = ""; } }
public function __construct($this_id = null, $this_category_name = null, $this_title_heading = null, $this_subtitle_heading = null, $this_background_color = null, $this_category_description = null, $this_category_image_url = null, $this_contact_email = null, $this_link_url = null, $this_is_active = null, $this_sort_order = null) { // Run parent constructor parent::__construct(); // Full constructor: use input vars to set up property values of this object if (isset($this_id) && isset($this_category_name) && isset($this_title_heading) && isset($this_subtitle_heading) && isset($this_background_color) && isset($this_category_description) && isset($this_category_image_url) && isset($this_contact_email) && isset($this_link_url) && isset($this_is_active) && isset($this_sort_order)) { $this->Id = $this_id; $this->CategoryName = $this_category_name; $this->TitleHeading = $this_title_heading; $this->SubtitleHeading = $this_subtitle_heading; $this->BackgroundColor = $this_background_color; $this->CategoryDescription = $this_category_description; $this->CategoryImageUrl = $this_category_image_url; $this->ContactEmail = $this_contact_email; $this->LinkUrl = $this_link_url; $this->IsActive = $this_is_active; $this->SortOrder = $this_sort_order; } elseif (isset($this_id)) { // ID constructor: get values from database and populate property values // Retrieve this row $q = "SELECT * FROM category WHERE id = ?"; $id = intval($this_id); $r = parent::returnResultSet($q, $id); $hasRow = false; // Set property values to values in result set foreach ($r as $l) { $this->Id = $l->id; $this->CategoryName = $l->category_name; $this->TitleHeading = $l->title_heading; $this->SubtitleHeading = $l->subtitle_heading; $this->BackgroundColor = $l->background_color; $this->CategoryDescription = $l->category_description; $this->CategoryImageUrl = $l->category_image_url; $this->ContactEmail = $l->contact_email; $this->LinkUrl = $l->link_url; $this->IsActive = $l->is_active; $this->SortOrder = $l->sort_order; $hasRow = true; } // Make sure there was a row returned; if not, set ID to -1 to indicate a bad object if (!$hasRow) { $this->Id = -1; } } else { $this->Id = 0; $this->CategoryName = ""; $this->TitleHeading = ""; $this->SubtitleHeading = ""; $this->BackgroundColor = ""; $this->CategoryDescription = ""; $this->CategoryImageUrl = ""; $this->ContactEmail = ""; $this->LinkUrl = ""; $this->IsActive = ""; $this->SortOrder = ""; } }
public function __construct($this_id = null, $this_light_id = null, $this_dark_text = null, $this_light_text = null, $this_image_file_dark = null, $this_image_file_light = null, $this_background_image_file = null, $this_rgba_value = null, $this_rgba_value_right = null, $this_sort_order = null) { // Run parent constructor parent::__construct(); // Full constructor: use input vars to set up property values of this object if (isset($this_id) && isset($this_light_id) && isset($this_dark_text) && isset($this_light_text) && isset($this_image_file_dark) && isset($this_image_file_light) && isset($this_background_image_file) && isset($this_rgba_value) && isset($this_rgba_value_right) && isset($this_sort_order)) { $this->Id = $this_id; $this->LightId = $this_light_id; $this->DarkText = $this_dark_text; $this->LightText = $this_light_text; $this->ImageFileDark = $this_image_file_dark; $this->ImageFileLight = $this_image_file_light; $this->BackgroundImageFile = $this_background_image_file; $this->RgbaValue = $this_rgba_value; $this->RgbaValueRight = $this_rgba_value_right; $this->SortOrder = $this_sort_order; } elseif (isset($this_id)) { // ID constructor: get values from database and populate property values // Retrieve this row $q = "SELECT * FROM light_test WHERE id = ?"; $id = intval($this_id); $r = parent::returnResultSet($q, $id); $hasRow = false; // Set property values to values in result set foreach ($r as $l) { $this->Id = $l->id; $this->LightId = $l->light_id; $this->DarkText = $l->dark_text; $this->LightText = $l->light_text; $this->ImageFileDark = $l->image_file_dark; $this->ImageFileLight = $l->image_file_light; $this->BackgroundImageFile = $l->background_image_file; $this->RgbaValue = $l->rgba_value; $this->RgbaValueRight = $l->rgba_value_right; $this->SortOrder = $l->sort_order; $hasRow = true; } // Make sure there was a row returned; if not, set ID to -1 to indicate a bad object if (!$hasRow) { $this->Id = -1; } } else { $this->Id = 0; $this->LightId = ""; $this->DarkText = ""; $this->LightText = ""; $this->ImageFileDark = ""; $this->ImageFileLight = ""; $this->BackgroundImageFile = ""; $this->RgbaValue = ""; $this->RgbaValueRight = ""; $this->SortOrder = ""; } }
public function __construct($this_id = null, $this_category_id = null, $this_patent_name = null, $this_patent_image_url = null, $this_patent_abstract = null, $this_patent_probable_assignee = null, $this_patent_assignees_std = null, $this_patent_assignees = null, $this_sort_order = null) { // Run parent constructor parent::__construct(); // Full constructor: use input vars to set up property values of this object if (isset($this_id) && isset($this_category_id) && isset($this_patent_name) && isset($this_patent_image_url) && isset($this_patent_abstract) && isset($this_patent_probable_assignee) && isset($this_patent_assignees_std) && isset($this_patent_assignees) && isset($this_sort_order)) { $this->Id = $this_id; $this->CategoryId = $this_category_id; $this->PatentName = $this_patent_name; $this->PatentImageUrl = $this_patent_image_url; $this->PatentAbstract = $this_patent_abstract; $this->PatentProbableAssignee = $this_patent_probable_assignee; $this->PatentAssigneesStd = $this_patent_assignees_std; $this->PatentAssignees = $this_patent_assignees; $this->SortOrder = $this_sort_order; } elseif (isset($this_id)) { // ID constructor: get values from database and populate property values // Retrieve this row $q = "SELECT * FROM patent WHERE id = ?"; $id = intval($this_id); $r = parent::returnResultSet($q, $id); $hasRow = false; // Set property values to values in result set foreach ($r as $l) { $this->Id = $l->id; $this->CategoryId = $l->category_id; $this->PatentName = $l->patent_name; $this->PatentImageUrl = $l->patent_image_url; $this->PatentAbstract = $l->patent_abstract; $this->PatentProbableAssignee = $l->patent_probable_assignee; $this->PatentAssigneesStd = $l->patent_assignees_std; $this->PatentAssignees = $l->patent_assignees; $this->SortOrder = $l->sort_order; $hasRow = true; } // Make sure there was a row returned; if not, set ID to -1 to indicate a bad object if (!$hasRow) { $this->Id = -1; } } else { $this->Id = 0; $this->CategoryId = ""; $this->PatentName = ""; $this->PatentImageUrl = ""; $this->PatentAbstract = ""; $this->PatentProbableAssignee = ""; $this->PatentAssigneesStd = ""; $this->PatentAssignees = ""; $this->SortOrder = ""; } }
public function __construct($this_id = null, $this_category_id = null, $this_technology_name = null, $this_technology_button_image_url = null, $this_technology_button_active_image_url = null, $this_link_url = null, $this_technology_headline = null, $this_is_active = null, $this_sort_order = null) { // Run parent constructor parent::__construct(); // Full constructor: use input vars to set up property values of this object if (isset($this_id) && isset($this_category_id) && isset($this_technology_name) && isset($this_technology_button_image_url) && isset($this_technology_button_active_image_url) && isset($this_link_url) && isset($this_technology_headline) && isset($this_is_active) && isset($this_sort_order)) { $this->Id = $this_id; $this->CategoryId = $this_category_id; $this->TechnologyName = $this_technology_name; $this->TechnologyButtonImageUrl = $this_technology_button_image_url; $this->TechnologyButtonActiveImageUrl = $this_technology_button_active_image_url; $this->LinkUrl = $this_link_url; $this->TechnologyHeadline = $this_technology_headline; $this->IsActive = $this_is_active; $this->SortOrder = $this_sort_order; } elseif (isset($this_id)) { // ID constructor: get values from database and populate property values // Retrieve this row $q = "SELECT * FROM technology WHERE id = ?"; $id = intval($this_id); $r = parent::returnResultSet($q, $id); $hasRow = false; // Set property values to values in result set foreach ($r as $l) { $this->Id = $l->id; $this->CategoryId = $l->category_id; $this->TechnologyName = $l->technology_name; $this->TechnologyButtonImageUrl = $l->technology_button_image_url; $this->TechnologyButtonActiveImageUrl = $l->technology_button_active_image_url; $this->LinkUrl = $l->link_url; $this->TechnologyHeadline = $l->technology_headline; $this->IsActive = $l->is_active; $this->SortOrder = $l->sort_order; $hasRow = true; } // Make sure there was a row returned; if not, set ID to -1 to indicate a bad object if (!$hasRow) { $this->Id = -1; } } else { $this->Id = 0; $this->CategoryId = ""; $this->TechnologyName = ""; $this->TechnologyButtonImageUrl = ""; $this->TechnologyButtonActiveImageUrl = ""; $this->LinkUrl = ""; $this->TechnologyHeadline = ""; $this->IsActive = ""; $this->SortOrder = ""; } }
public function __construct($this_id = null, $this_first_name = null, $this_last_name = null, $this_username = null, $this_password = null, $this_email_address = null, $this_date_created = null, $this_is_active = null, $this_is_admin = null) { // Run parent constructor parent::__construct(); // Full constructor: use input vars to set up property values of this object if (isset($this_id) && isset($this_first_name) && isset($this_last_name) && isset($this_username) && isset($this_password) && isset($this_email_address) && isset($this_date_created) && isset($this_is_active) && isset($this_is_admin)) { $this->Id = $this_id; $this->FirstName = $this_first_name; $this->LastName = $this_last_name; $this->Username = $this_username; $this->Password = $this_password; $this->EmailAddress = $this_email_address; $this->DateCreated = $this_date_created; $this->IsActive = $this_is_active; $this->IsAdmin = $this_is_admin; } elseif (isset($this_id)) { // ID constructor: get values from database and populate property values // Retrieve this row $q = "SELECT * FROM system_user WHERE id = ?"; $id = intval($this_id); $r = parent::returnResultSet($q, $id); $hasRow = false; // Set property values to values in result set foreach ($r as $l) { $this->Id = $l->id; $this->FirstName = $l->first_name; $this->LastName = $l->last_name; $this->Username = $l->username; $this->Password = $l->password; $this->EmailAddress = $l->email_address; $this->DateCreated = $l->date_created; $this->IsActive = $l->is_active; $this->IsAdmin = $l->is_admin; $hasRow = true; } // Make sure there was a row returned; if not, set ID to -1 to indicate a bad object if (!$hasRow) { $this->Id = -1; } } else { $this->Id = 0; $this->FirstName = ""; $this->LastName = ""; $this->Username = ""; $this->Password = ""; $this->EmailAddress = ""; $this->DateCreated = ""; $this->IsActive = ""; $this->IsAdmin = ""; } }
public function __construct($thisName = null, $thisClass = null, $arrFields = null) { // Run parent constructor parent::__construct(); // if (!$this->isdev) { // return NULL; // } // ID constructor: set name if (isset($thisName)) { $this->Name = $thisName; $this->Class = $thisClass; } else { $this->Name = ""; $this->Class = ""; } }
public function __construct($this_id = null, $this_item_id = null, $this_item_video_title = null, $this_item_video_url = null, $this_item_video_placeholder_image_url = null, $this_sort_order = null) { // Run parent constructor parent::__construct(); // Full constructor: use input vars to set up property values of this object if (isset($this_id) && isset($this_item_id) && isset($this_item_video_title) && isset($this_item_video_url) && isset($this_item_video_placeholder_image_url) && isset($this_sort_order)) { $this->Id = $this_id; $this->ItemId = $this_item_id; $this->ItemVideoTitle = $this_item_video_title; $this->ItemVideoUrl = $this_item_video_url; $this->ItemVideoPlaceholderImageUrl = $this_item_video_placeholder_image_url; $this->SortOrder = $this_sort_order; } elseif (isset($this_id)) { // ID constructor: get values from database and populate property values // Retrieve this row $q = "SELECT * FROM item_video WHERE id = ?"; $id = intval($this_id); $r = parent::returnResultSet($q, $id); $hasRow = false; // Set property values to values in result set foreach ($r as $l) { $this->Id = $l->id; $this->ItemId = $l->item_id; $this->ItemVideoTitle = $l->item_video_title; $this->ItemVideoUrl = $l->item_video_url; $this->ItemVideoPlaceholderImageUrl = $l->item_video_placeholder_image_url; $this->SortOrder = $l->sort_order; $hasRow = true; } // Make sure there was a row returned; if not, set ID to -1 to indicate a bad object if (!$hasRow) { $this->Id = -1; } } else { $this->Id = 0; $this->ItemId = ""; $this->ItemVideoTitle = ""; $this->ItemVideoUrl = ""; $this->ItemVideoPlaceholderImageUrl = ""; $this->SortOrder = ""; } }
public function __construct($this_id = null, $this_item_image_id = null, $this_hotspot_left = null, $this_hotspot_top = null, $this_item_image_highlight_info = null) { // Run parent constructor parent::__construct(); // Full constructor: use input vars to set up property values of this object if (isset($this_id) && isset($this_item_image_id) && isset($this_hotspot_left) && isset($this_hotspot_top) && isset($this_item_image_highlight_info)) { $this->Id = $this_id; $this->ItemImageId = $this_item_image_id; $this->HotspotLeft = $this_hotspot_left; $this->HotspotTop = $this_hotspot_top; $this->ItemImageHighlightInfo = $this_item_image_highlight_info; } elseif (isset($this_id)) { // ID constructor: get values from database and populate property values // Retrieve this row $q = "SELECT * FROM item_image_highlight WHERE id = ?"; $id = intval($this_id); $r = parent::returnResultSet($q, $id); $hasRow = false; // Set property values to values in result set foreach ($r as $l) { $this->Id = $l->id; $this->ItemImageId = $l->item_image_id; $this->HotspotLeft = $l->hotspot_left; $this->HotspotTop = $l->hotspot_top; $this->ItemImageHighlightInfo = $l->item_image_highlight_info; $hasRow = true; } // Make sure there was a row returned; if not, set ID to -1 to indicate a bad object if (!$hasRow) { $this->Id = -1; } } else { $this->Id = 0; $this->ItemImageId = ""; $this->HotspotLeft = ""; $this->HotspotTop = ""; $this->ItemImageHighlightInfo = ""; } }
public function __construct($this_id = null, $this_sound_id = null, $this_sound_test_description = null, $this_sound_url1 = null, $this_sound_url2 = null, $this_sound_url3 = null, $this_image_url1 = null, $this_image_url2 = null, $this_image_url3 = null, $this_text1 = null, $this_text2 = null, $this_text3 = null, $this_sort_order = null) { // Run parent constructor parent::__construct(); // Full constructor: use input vars to set up property values of this object if (isset($this_id) && isset($this_sound_id) && isset($this_sound_test_description) && isset($this_sound_url1) && isset($this_sound_url2) && isset($this_sound_url3) && isset($this_image_url1) && isset($this_image_url2) && isset($this_image_url3) && isset($this_text1) && isset($this_text2) && isset($this_text3) && isset($this_sort_order)) { $this->Id = $this_id; $this->SoundId = $this_sound_id; $this->SoundTestDescription = $this_sound_test_description; $this->SoundUrl1 = $this_sound_url1; $this->SoundUrl2 = $this_sound_url2; $this->SoundUrl3 = $this_sound_url3; $this->ImageUrl1 = $this_image_url1; $this->ImageUrl2 = $this_image_url2; $this->ImageUrl3 = $this_image_url3; $this->Text1 = $this_text1; $this->Text2 = $this_text2; $this->Text3 = $this_text3; $this->SortOrder = $this_sort_order; } elseif (isset($this_id)) { // ID constructor: get values from database and populate property values // Retrieve this row $q = "SELECT * FROM sound_test WHERE id = ?"; $id = intval($this_id); $r = parent::returnResultSet($q, $id); $hasRow = false; // Set property values to values in result set foreach ($r as $l) { $this->Id = $l->id; $this->SoundId = $l->sound_id; $this->SoundTestDescription = $l->sound_test_description; $this->SoundUrl1 = $l->sound_url1; $this->SoundUrl2 = $l->sound_url2; $this->SoundUrl3 = $l->sound_url3; $this->ImageUrl1 = $l->image_url1; $this->ImageUrl2 = $l->image_url2; $this->ImageUrl3 = $l->image_url3; $this->Text1 = $l->text1; $this->Text2 = $l->text2; $this->Text3 = $l->text3; $this->SortOrder = $l->sort_order; $hasRow = true; } // Make sure there was a row returned; if not, set ID to -1 to indicate a bad object if (!$hasRow) { $this->Id = -1; } } else { $this->Id = 0; $this->SoundId = ""; $this->SoundTestDescription = ""; $this->SoundUrl1 = ""; $this->SoundUrl2 = ""; $this->SoundUrl3 = ""; $this->ImageUrl1 = ""; $this->ImageUrl2 = ""; $this->ImageUrl3 = ""; $this->Text1 = ""; $this->Text2 = ""; $this->Text3 = ""; $this->SortOrder = ""; } }