public function updateCollectionAliasExternal($cName, $cLink, $newWindow = 0)
    {
        if ($this->cPointerExternalLink != '') {
            $db = Database::connection();
            $this->markModified();
            if ($newWindow) {
                $newWindow = 1;
            } else {
                $newWindow = 0;
            }
            $db->executeQuery('update CollectionVersions set cvName = ? where cID = ?', array($cName, $this->cID));
            $db->executeQuery('update Pages set cPointerExternalLink = ?, cPointerExternalLinkNewWindow = ? where cID = ?', array($cLink, $newWindow, $this->cID));
        }
    }
public function updateCollectionAliasExternal($cName, $cLink, $newWindow = 0)
    {
        if ($this->cPointerExternalLink != '') {
            $db = Database::connection();
            $this->markModified();
            if ($newWindow) {
                $newWindow = 1;
            } else {
                $newWindow = 0;
            }
            $db->executeQuery('update CollectionVersions set cvName = ? where cID = ?', array($cName, $this->cID));
            $db->executeQuery('update Pages set cPointerExternalLink = ?, cPointerExternalLinkNewWindow = ? where cID = ?', array($cLink, $newWindow, $this->cID));
        }
    }
public function updateCollectionAliasExternal ( $ cName , $ cLink , $ newWindow = 0 ) { if ( $ this -> cPointerExternalLink != '' ) { $ db = Database :: connection ( ) ; $ this -> markModified ( ) ; if ( $ newWindow ) { $ newWindow = 1 ; } else { $ newWindow = 0 ; } $ db -> executeQuery ( 'update CollectionVersions set cvName = ? where cID = ?' , array ( $ cName , $ this -> cID ) ) ; $ db -> executeQuery ( 'update Pages set cPointerExternalLink = ?, cPointerExternalLinkNewWindow = ? where cID = ?' , array ( $ cLink , $ newWindow , $ this -> cID ) ) ; } }
Update the name, link, and to open in a new window for an external link.

@param string $cName
@param string $cLink
@param bool $newWindow
Update the name link and to open in a new window for an external link .