static public function getCTARolesForSiteTarget($nb_site_target)
    {
        $nb_site_target_id = nb_getMixedValue($nb_site_target, NABU_SITE_TARGET_FIELD_ID);
        if (is_numeric($nb_site_target_id)) {
            $retval = CNabuEngine::getEngine()
                    ->getMainDB()
                    ->getQueryAsObjectArray(
                        '\nabu\data\site\CNabuSiteTargetCTARole', null,
                        'select stcr.* '
                        . 'from nb_site_target_cta stc, nb_site_target_cta_role stcr '
                       . 'where stc.nb_site_target_cta_id=stcr.nb_site_target_cta_id '
                         . 'and stc.nb_site_target_id=%target_id$d',
                        array(
                            'target_id' => $nb_site_target_id
                        )
                    )
            ;
        } else {
            $retval = null;
        }

        return $retval;
    }
static public function getCTARolesForSiteTarget($nb_site_target)
    {
        $nb_site_target_id = nb_getMixedValue($nb_site_target, NABU_SITE_TARGET_FIELD_ID);
        if (is_numeric($nb_site_target_id)) {
            $retval = CNabuEngine::getEngine()
                    ->getMainDB()
                    ->getQueryAsObjectArray(
                        '\nabu\data\site\CNabuSiteTargetCTARole', null,
                        'select stcr.* '
                        . 'from nb_site_target_cta stc, nb_site_target_cta_role stcr '
                       . 'where stc.nb_site_target_cta_id=stcr.nb_site_target_cta_id '
                         . 'and stc.nb_site_target_id=%target_id$d',
                        array(
                            'target_id' => $nb_site_target_id
                        )
                    )
            ;
        } else {
            $retval = null;
        }

        return $retval;
    }
static public function getCTARolesForSiteTarget ( $ nb_site_target ) { $ nb_site_target_id = nb_getMixedValue ( $ nb_site_target , NABU_SITE_TARGET_FIELD_ID ) ; if ( is_numeric ( $ nb_site_target_id ) ) { $ retval = CNabuEngine :: getEngine ( ) -> getMainDB ( ) -> getQueryAsObjectArray ( '\nabu\data\site\CNabuSiteTargetCTARole' , null , 'select stcr.* ' . 'from nb_site_target_cta stc, nb_site_target_cta_role stcr ' . 'where stc.nb_site_target_cta_id=stcr.nb_site_target_cta_id ' . 'and stc.nb_site_target_id=%target_id$d' , array ( 'target_id' => $ nb_site_target_id ) ) ; } else { $ retval = null ; } return $ retval ; }
Get all roles to be applied to all CTAs of a Site Target.
@param mixed $nb_site_target Site Target to retrieve Site Target CTA Roles.
@return array|null Returns a Site Map Role List with roles. If no roles the list is empty.
Get all roles to be applied to all CTAs of a Site Target .