public function getPlaces($layoutSrc)
	{
		$places = array();

		// Ignore CDATA
		$cdataCallback = function($cdata) {};

		// Collect place holders
		$macroCallback = function($func, array $args) use (&$places, $layoutSrc) {
					if ($func == HtmlProcessor::PLACE_HOLDER) {
						if ( ! array_key_exists(0, $args) || $args[0] == '') {
							throw new \RuntimeException("No placeholder name defined in the placeHolder macro in file {$layoutSrc}");
						}

						// Normalize placeholder ID for case insensitive MySQL varchar field
						$places[] = mb_strtolower($args[0]);
					}
				};

		$this->walk($layoutSrc, $cdataCallback, $macroCallback);

		return $places;
	}
public function getPlaces($layoutSrc)
	{
		$places = array();

		// Ignore CDATA
		$cdataCallback = function($cdata) {};

		// Collect place holders
		$macroCallback = function($func, array $args) use (&$places, $layoutSrc) {
					if ($func == HtmlProcessor::PLACE_HOLDER) {
						if ( ! array_key_exists(0, $args) || $args[0] == '') {
							throw new \RuntimeException("No placeholder name defined in the placeHolder macro in file {$layoutSrc}");
						}

						// Normalize placeholder ID for case insensitive MySQL varchar field
						$places[] = mb_strtolower($args[0]);
					}
				};

		$this->walk($layoutSrc, $cdataCallback, $macroCallback);

		return $places;
	}
public function getPlaces ( $ layoutSrc ) { $ places = array ( ) ; // Ignore CDATA $ cdataCallback = function ( $ cdata ) { } ; // Collect place holders $ macroCallback = function ( $ func , array $ args ) use ( & $ places , $ layoutSrc ) { if ( $ func == HtmlProcessor :: PLACE_HOLDER ) { if ( ! array_key_exists ( 0 , $ args ) || $ args [ 0 ] == '' ) { throw new \ RuntimeException ( "No placeholder name defined in the placeHolder macro in file {$layoutSrc}" ) ; } // Normalize placeholder ID for case insensitive MySQL varchar field $ places [ ] = mb_strtolower ( $ args [ 0 ] ) ; } } ; $ this -> walk ( $ layoutSrc , $ cdataCallback , $ macroCallback ) ; return $ places ; }
Return list of place names inside the layout
@param string $layoutSrc
@return array
Return list of place names inside the layout