public static function addPageTypesToPage($page_id = null, array $types)
    {
        if (is_null($page_id)) {
            return false;
        }

        PageManager::deletePageTypes($page_id);

        foreach ($types as $type) {
            Symphony::Database()->insert(
                array(
                    'page_id' => $page_id,
                    'type' => $type
                ),
                'tbl_pages_types'
            );
        }

        return true;
    }
public static function addPageTypesToPage($page_id = null, array $types)
    {
        if (is_null($page_id)) {
            return false;
        }

        PageManager::deletePageTypes($page_id);

        foreach ($types as $type) {
            Symphony::Database()->insert(
                array(
                    'page_id' => $page_id,
                    'type' => $type
                ),
                'tbl_pages_types'
            );
        }

        return true;
    }
public static function addPageTypesToPage ( $ page_id = null , array $ types ) { if ( is_null ( $ page_id ) ) { return false ; } PageManager :: deletePageTypes ( $ page_id ) ; foreach ( $ types as $ type ) { Symphony :: Database ( ) -> insert ( array ( 'page_id' => $ page_id , 'type' => $ type ) , 'tbl_pages_types' ) ; } return true ; }
Given a Page ID and an array of types, this function will add Page types
to that Page. If a Page types are stored in `tbl_pages_types`.

@param integer $page_id
The Page ID to add the Types to
@param array $types
An array of page types
@throws DatabaseException
@return boolean
Given a Page ID and an array of types this function will add Page types to that Page . If a Page types are stored in tbl_pages_types .