src/UI/Template.php
public function getLabels( $type = 0, $xml = TRUE )
	{
 		$content = preg_replace( '/<%\??--.*--%>/sU', '', $this->template );	
		switch( $type )
		{
			case 2:
				preg_match_all( '/<%(\?.*)%>/U', $content, $tags );
				break;
			case 1:
				preg_match_all( '/<%([^-?].*)%>/U', $content, $tags );
				break;
			default:
				preg_match_all( '/<%([^-].*)%>/U', $content, $tags );
		}
		return $xml ? $tags[0] : $tags[1];
	}
public function getLabels( $type = 0, $xml = TRUE )
	{
 		$content = preg_replace( '/<%\??--.*--%>/sU', '', $this->template );	
		switch( $type )
		{
			case 2:
				preg_match_all( '/<%(\?.*)%>/U', $content, $tags );
				break;
			case 1:
				preg_match_all( '/<%([^-?].*)%>/U', $content, $tags );
				break;
			default:
				preg_match_all( '/<%([^-].*)%>/U', $content, $tags );
		}
		return $xml ? $tags[0] : $tags[1];
	}
public function getLabels ( $ type = 0 , $ xml = TRUE ) { $ content = preg_replace ( '/<%\??--.*--%>/sU' , '' , $ this -> template ) ; switch ( $ type ) { case 2 : preg_match_all ( '/<%(\?.*)%>/U' , $ content , $ tags ) ; break ; case 1 : preg_match_all ( '/<%([^-?].*)%>/U' , $ content , $ tags ) ; break ; default : preg_match_all ( '/<%([^-].*)%>/U' , $ content , $ tags ) ; } return $ xml ? $ tags [ 0 ] : $ tags [ 1 ] ; }
Returns all defined labels.
@param		int			$type		Label Type: 0=all, 1=mandatory, 2=optional
@param		boolean		$xml		Flag: with or without delimiter
@return		array					Array of Labels
Returns all defined labels .