<?php
/**
 * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
 * CC-BY License - http://creativecommons.org/licenses/by/3.0/
 */

bx_import('BxDolPrivacy');

class BxSitesPrivacy extends BxDolPrivacy
{
    /**
     * Constructor
     */
    function BxSitesPrivacy(&$oModule)
    {
        parent::BxDolPrivacy('bx_sites_main', 'id', 'ownerid');
    }

    /**
     * Get database field name for action.
     *
     * @param  string $sAction action name.
     * @return string with field name.
     */
    function getFieldAction($sAction)
    {
        return 'allow' . ucfirst($sAction);
    }
}
