public static function addHomePage()
    {
        // creates the home page of the site
        $db = Database::connection();

        $cParentID = 0;
        $handle = HOME_HANDLE;
        $uID = HOME_UID;

        $data = array(
            'name' => HOME_NAME,
            'handle' => $handle,
            'uID' => $uID,
            'cID' => HOME_CID,
        );
        $cobj = parent::createCollection($data);
        $cID = $cobj->getCollectionID();

        $v = array($cID, $cParentID, $uID, 'OVERRIDE', 1, 1, 0);
        $q = 'insert into Pages (cID, cParentID, uID, cInheritPermissionsFrom, cOverrideTemplatePermissions, cInheritPermissionsFromCID, cDisplayOrder) values (?, ?, ?, ?, ?, ?, ?)';
        $r = $db->prepare($q);
        $r->execute($v);
        $pc = static::getByID($cID, 'RECENT');

        return $pc;
    }
public static function addHomePage()
    {
        // creates the home page of the site
        $db = Database::connection();

        $cParentID = 0;
        $handle = HOME_HANDLE;
        $uID = HOME_UID;

        $data = array(
            'name' => HOME_NAME,
            'handle' => $handle,
            'uID' => $uID,
            'cID' => HOME_CID,
        );
        $cobj = parent::createCollection($data);
        $cID = $cobj->getCollectionID();

        $v = array($cID, $cParentID, $uID, 'OVERRIDE', 1, 1, 0);
        $q = 'insert into Pages (cID, cParentID, uID, cInheritPermissionsFrom, cOverrideTemplatePermissions, cInheritPermissionsFromCID, cDisplayOrder) values (?, ?, ?, ?, ?, ?, ?)';
        $r = $db->prepare($q);
        $r->execute($v);
        $pc = static::getByID($cID, 'RECENT');

        return $pc;
    }
public static function addHomePage ( ) { // creates the home page of the site $ db = Database :: connection ( ) ; $ cParentID = 0 ; $ handle = HOME_HANDLE ; $ uID = HOME_UID ; $ data = array ( 'name' => HOME_NAME , 'handle' => $ handle , 'uID' => $ uID , 'cID' => HOME_CID , ) ; $ cobj = parent :: createCollection ( $ data ) ; $ cID = $ cobj -> getCollectionID ( ) ; $ v = array ( $ cID , $ cParentID , $ uID , 'OVERRIDE' , 1 , 1 , 0 ) ; $ q = 'insert into Pages (cID, cParentID, uID, cInheritPermissionsFrom, cOverrideTemplatePermissions, cInheritPermissionsFromCID, cDisplayOrder) values (?, ?, ?, ?, ?, ?, ?)' ; $ r = $ db -> prepare ( $ q ) ; $ r -> execute ( $ v ) ; $ pc = static :: getByID ( $ cID , 'RECENT' ) ; return $ pc ; }
Adds the home page to the system. Typically used only by the installation program.

@return page
Adds the home page to the system . Typically used only by the installation program .