static public function getSiteTargetSections($nb_site_target)
    {
        $nb_site_target_id = nb_getMixedValue($nb_site_target, 'nb_site_target_id');
        if (is_numeric($nb_site_target_id)) {
            $retval = CNabuSiteTargetSection::buildObjectListFromSQL(
                'nb_site_target_section_id',
                'select * '
                . 'from nb_site_target_section '
               . 'where nb_site_target_id=%target_id$d '
               . 'order by nb_site_target_section_order',
                array(
                    'target_id' => $nb_site_target_id
                )
            );
            if ($nb_site_target instanceof CNabuSiteTarget) {
                $retval->iterate(function($key, $nb_site_target_section) use ($nb_site_target) {
                    $nb_site_target_section->setSiteTarget($nb_site_target);
                    return true;
                });
            }
        } else {
            $retval = new CNabuSiteTargetSectionList();
        }

        return $retval;
    }
static public function getSiteTargetSections($nb_site_target)
    {
        $nb_site_target_id = nb_getMixedValue($nb_site_target, 'nb_site_target_id');
        if (is_numeric($nb_site_target_id)) {
            $retval = CNabuSiteTargetSection::buildObjectListFromSQL(
                'nb_site_target_section_id',
                'select * '
                . 'from nb_site_target_section '
               . 'where nb_site_target_id=%target_id$d '
               . 'order by nb_site_target_section_order',
                array(
                    'target_id' => $nb_site_target_id
                )
            );
            if ($nb_site_target instanceof CNabuSiteTarget) {
                $retval->iterate(function($key, $nb_site_target_section) use ($nb_site_target) {
                    $nb_site_target_section->setSiteTarget($nb_site_target);
                    return true;
                });
            }
        } else {
            $retval = new CNabuSiteTargetSectionList();
        }

        return $retval;
    }
static public function getSiteTargetSections ( $ nb_site_target ) { $ nb_site_target_id = nb_getMixedValue ( $ nb_site_target , 'nb_site_target_id' ) ; if ( is_numeric ( $ nb_site_target_id ) ) { $ retval = CNabuSiteTargetSection :: buildObjectListFromSQL ( 'nb_site_target_section_id' , 'select * ' . 'from nb_site_target_section ' . 'where nb_site_target_id=%target_id$d ' . 'order by nb_site_target_section_order' , array ( 'target_id' => $ nb_site_target_id ) ) ; if ( $ nb_site_target instanceof CNabuSiteTarget ) { $ retval -> iterate ( function ( $ key , $ nb_site_target_section ) use ( $ nb_site_target ) { $ nb_site_target_section -> setSiteTarget ( $ nb_site_target ) ; return true ; } ) ; } } else { $ retval = new CNabuSiteTargetSectionList ( ) ; } return $ retval ; }
Gets entire collection of Section instances of a Site Target.
@param mixed $nb_site_target A Site Target instance, an object containing a Site Target Id, or an Id.
@return CNabuSiteTargetSectionList Returns a CNabuSiteTargetSectionList instance containing located
Sections for $nb_site_target.
Gets entire collection of Section instances of a Site Target .