HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/NVonken/mijneigenlied.com/wwwroot/Core/Domain/Column.php
<?php

class Column extends BaseClass {

	////////////////
	// Properties //
	////////////////
	
	public $Id;
	public $PageId;
	public $Type;
	public $Element;
	public $Text;
	public $Photos;
	
	
	public static $_primaryKey = array("Id");
	////////////////////
	// Public Methods //
	////////////////////
	public static function Select($Id) {
		return parent::Select($Id);
	}
	
	public static function SelectByPage($PageId) {
		return parent::SelectObjects("SELECT * 
									  FROM `Column`
									  WHERE PageId = '" . intval($PageId) . "'");
	}
	
	public static function DeleteByPage($pageId)
	{
		parent::_db()->query("DELETE FROM `Column` WHERE PageId = ".intval($pageId));
	}
	
	public function Insert()
	{
		return parent::Insert();
	}

    public function Delete()
    {
        return parent::Delete();
    }
}
?>