protected function Init()
    {
        $sql = Access::SqlBuilder();
        $tbl = Site::Schema()->Table();
        $order = $sql->OrderList($sql->OrderAsc($tbl->Field('Name')));
        $sites = Site::Schema()->Fetch(false, null, $order);
        $this->sites = array();
        foreach ($sites as $site)
        {
            if (self::Guard()->Allow(BackendAction::Read(), $site))
            {
                $this->sites[] = $site;
            }
        }
        return parent::Init();
    }
protected function Init()
    {
        $sql = Access::SqlBuilder();
        $tbl = Site::Schema()->Table();
        $order = $sql->OrderList($sql->OrderAsc($tbl->Field('Name')));
        $sites = Site::Schema()->Fetch(false, null, $order);
        $this->sites = array();
        foreach ($sites as $site)
        {
            if (self::Guard()->Allow(BackendAction::Read(), $site))
            {
                $this->sites[] = $site;
            }
        }
        return parent::Init();
    }
protected function Init ( ) { $ sql = Access :: SqlBuilder ( ) ; $ tbl = Site :: Schema ( ) -> Table ( ) ; $ order = $ sql -> OrderList ( $ sql -> OrderAsc ( $ tbl -> Field ( 'Name' ) ) ) ; $ sites = Site :: Schema ( ) -> Fetch ( false , null , $ order ) ; $ this -> sites = array ( ) ; foreach ( $ sites as $ site ) { if ( self :: Guard ( ) -> Allow ( BackendAction :: Read ( ) , $ site ) ) { $ this -> sites [ ] = $ site ; } } return parent :: Init ( ) ; }
Initiaizes the set of sites
Initiaizes the set of sites