コード例 #1
0
    /**
     * Deletes all associated RoleModuleAuthorizations
     * @return void
     */
    public function DeleteAllRoleModuleAuthorizations()
    {
        if (is_null($this->intRoleModuleId)) {
            throw new QUndefinedPrimaryKeyException('Unable to call UnassociateRoleModuleAuthorization on this unsaved RoleModule.');
        }
        // Get the Database Object for this Class
        $objDatabase = RoleModule::GetDatabase();
        // Perform the SQL Query
        $objDatabase->NonQuery('
				DELETE FROM
					`role_module_authorization`
				WHERE
					`role_module_id` = ' . $objDatabase->SqlVariable($this->intRoleModuleId) . '
			');
    }