Classes/Scheduler/Provider/AbstractProvider.php
protected function getAvailableSites()
	{
		$manager = \Aimeos\MShop::create( Scheduler\Base::getContext(), 'locale/site' );

		$search = $manager->createSearch();
		$search->setConditions( $search->compare( '==', 'locale.site.level', 0 ) );
		$search->setSortations( array( $search->sort( '+', 'locale.site.label' ) ) );

		$sites = $manager->searchItems( $search );

		foreach( $sites as $id => $siteItem ) {
			$sites[$id] = $manager->getTree( $id, array(), \Aimeos\MW\Tree\Manager\Base::LEVEL_TREE );
		}

		return $sites;
	}
protected function getAvailableSites()
	{
		$manager = \Aimeos\MShop::create( Scheduler\Base::getContext(), 'locale/site' );

		$search = $manager->createSearch();
		$search->setConditions( $search->compare( '==', 'locale.site.level', 0 ) );
		$search->setSortations( array( $search->sort( '+', 'locale.site.label' ) ) );

		$sites = $manager->searchItems( $search );

		foreach( $sites as $id => $siteItem ) {
			$sites[$id] = $manager->getTree( $id, array(), \Aimeos\MW\Tree\Manager\Base::LEVEL_TREE );
		}

		return $sites;
	}
protected function getAvailableSites ( ) { $ manager = \ Aimeos \ MShop :: create ( Scheduler \ Base :: getContext ( ) , 'locale/site' ) ; $ search = $ manager -> createSearch ( ) ; $ search -> setConditions ( $ search -> compare ( '==' , 'locale.site.level' , 0 ) ) ; $ search -> setSortations ( array ( $ search -> sort ( '+' , 'locale.site.label' ) ) ) ; $ sites = $ manager -> searchItems ( $ search ) ; foreach ( $ sites as $ id => $ siteItem ) { $ sites [ $ id ] = $ manager -> getTree ( $ id , array ( ) , \ Aimeos \ MW \ Tree \ Manager \ Base :: LEVEL_TREE ) ; } return $ sites ; }
Returns the list of site trees.

@return array Associative list of items and children implementing \Aimeos\MShop\Locale\Item\Site\Iface
Returns the list of site trees .