src/ADT/List/SectionList.php
public function getSectionOfEntry( $entry )
	{
		foreach( $this->getSections() as $section )
			if( in_array( $entry, $this->list[$section] ) )
				return $section;
		throw new InvalidArgumentException( 'Entry "'.$entry.'" not found in any Section.' );
	}
public function getSectionOfEntry( $entry )
	{
		foreach( $this->getSections() as $section )
			if( in_array( $entry, $this->list[$section] ) )
				return $section;
		throw new InvalidArgumentException( 'Entry "'.$entry.'" not found in any Section.' );
	}
public function getSectionOfEntry ( $ entry ) { foreach ( $ this -> getSections ( ) as $ section ) if ( in_array ( $ entry , $ this -> list [ $ section ] ) ) return $ section ; throw new InvalidArgumentException ( 'Entry "' . $ entry . '" not found in any Section.' ) ; }
Return the Sections of an entry if available.
@access		public
@param		string		$entry			Entry to get Section for
@return		string
Return the Sections of an entry if available .