public function setPermissionsInheritanceToTemplate()
    {
        $db = Database::connection();
        if ($this->cID) {
            $db->executeQuery('update Pages set cOverrideTemplatePermissions = 0 where cID = ?', array($this->cID));
        }
    }
public function setPermissionsInheritanceToTemplate()
    {
        $db = Database::connection();
        if ($this->cID) {
            $db->executeQuery('update Pages set cOverrideTemplatePermissions = 0 where cID = ?', array($this->cID));
        }
    }
public function setPermissionsInheritanceToTemplate ( ) { $ db = Database :: connection ( ) ; if ( $ this -> cID ) { $ db -> executeQuery ( 'update Pages set cOverrideTemplatePermissions = 0 where cID = ?' , array ( $ this -> cID ) ) ; } }
Set the permissions of sub-collections added beneath this permissions to inherit from the template.
Set the permissions of sub - collections added beneath this permissions to inherit from the template .