Classes/Scheduler/Provider/AbstractProvider.php
protected function getControllerOptions( array $selected )
	{
		$html = '';
		$aimeos = Base::getAimeos();
		$context = Scheduler\Base::getContext();
		$cntlPaths = $aimeos->getCustomPaths( 'controller/jobs' );

		$langid = 'en';
		if( isset( $GLOBALS['BE_USER']->uc['lang'] ) && $GLOBALS['BE_USER']->uc['lang'] != '' ) {
			$langid = $GLOBALS['BE_USER']->uc['lang'];
		}

		$localeItem = \Aimeos\MShop::create( $context, 'locale' )->createItem();
		$localeItem->setLanguageId( $langid );
		$context->setLocale( $localeItem );

		$controllers = \Aimeos\Controller\Jobs::get( $context, $aimeos, $cntlPaths );

		foreach( $controllers as $name => $controller )
		{
			$active = ( in_array( $name, $selected ) ? 'selected="selected"' : '' );
			$title = htmlspecialchars( $controller->getDescription(), ENT_QUOTES, 'UTF-8' );
			$cntl = htmlspecialchars( $controller->getName(), ENT_QUOTES, 'UTF-8' );
			$name = htmlspecialchars( $name, ENT_QUOTES, 'UTF-8' );

			$html .= sprintf( '<option value="%1$s" title="%2$s" %3$s>%4$s</option>', $name, $title, $active, $cntl );
		}

		return $html;
	}
protected function getControllerOptions( array $selected )
	{
		$html = '';
		$aimeos = Base::getAimeos();
		$context = Scheduler\Base::getContext();
		$cntlPaths = $aimeos->getCustomPaths( 'controller/jobs' );

		$langid = 'en';
		if( isset( $GLOBALS['BE_USER']->uc['lang'] ) && $GLOBALS['BE_USER']->uc['lang'] != '' ) {
			$langid = $GLOBALS['BE_USER']->uc['lang'];
		}

		$localeItem = \Aimeos\MShop::create( $context, 'locale' )->createItem();
		$localeItem->setLanguageId( $langid );
		$context->setLocale( $localeItem );

		$controllers = \Aimeos\Controller\Jobs::get( $context, $aimeos, $cntlPaths );

		foreach( $controllers as $name => $controller )
		{
			$active = ( in_array( $name, $selected ) ? 'selected="selected"' : '' );
			$title = htmlspecialchars( $controller->getDescription(), ENT_QUOTES, 'UTF-8' );
			$cntl = htmlspecialchars( $controller->getName(), ENT_QUOTES, 'UTF-8' );
			$name = htmlspecialchars( $name, ENT_QUOTES, 'UTF-8' );

			$html .= sprintf( '<option value="%1$s" title="%2$s" %3$s>%4$s</option>', $name, $title, $active, $cntl );
		}

		return $html;
	}
protected function getControllerOptions ( array $ selected ) { $ html = '' ; $ aimeos = Base :: getAimeos ( ) ; $ context = Scheduler \ Base :: getContext ( ) ; $ cntlPaths = $ aimeos -> getCustomPaths ( 'controller/jobs' ) ; $ langid = 'en' ; if ( isset ( $ GLOBALS [ 'BE_USER' ] -> uc [ 'lang' ] ) && $ GLOBALS [ 'BE_USER' ] -> uc [ 'lang' ] != '' ) { $ langid = $ GLOBALS [ 'BE_USER' ] -> uc [ 'lang' ] ; } $ localeItem = \ Aimeos \ MShop :: create ( $ context , 'locale' ) -> createItem ( ) ; $ localeItem -> setLanguageId ( $ langid ) ; $ context -> setLocale ( $ localeItem ) ; $ controllers = \ Aimeos \ Controller \ Jobs :: get ( $ context , $ aimeos , $ cntlPaths ) ; foreach ( $ controllers as $ name => $ controller ) { $ active = ( in_array ( $ name , $ selected ) ? 'selected="selected"' : '' ) ; $ title = htmlspecialchars ( $ controller -> getDescription ( ) , ENT_QUOTES , 'UTF-8' ) ; $ cntl = htmlspecialchars ( $ controller -> getName ( ) , ENT_QUOTES , 'UTF-8' ) ; $ name = htmlspecialchars ( $ name , ENT_QUOTES , 'UTF-8' ) ; $ html .= sprintf ( '<option value="%1$s" title="%2$s" %3$s>%4$s</option>' , $ name , $ title , $ active , $ cntl ) ; } return $ html ; }
Returns the HTML code for the controller control.

@param array $selected List of site codes that were previously selected by the user
@return string HTML code with <option> tags for the select box
Returns the HTML code for the controller control .