src/ADT/List/SectionList.php
public function addEntry( $entry, $section )
	{
		if( isset( $this->list[$section] ) && is_array( $this->list[$section] ) && in_array( $entry, $this->list[$section] ) )
			throw new InvalidArgumentException( 'Entry "'.$entry.'" is already in Section "'.$section.'".' );
		$this->list[$section][] = $entry;
	}
public function addEntry( $entry, $section )
	{
		if( isset( $this->list[$section] ) && is_array( $this->list[$section] ) && in_array( $entry, $this->list[$section] ) )
			throw new InvalidArgumentException( 'Entry "'.$entry.'" is already in Section "'.$section.'".' );
		$this->list[$section][] = $entry;
	}
public function addEntry ( $ entry , $ section ) { if ( isset ( $ this -> list [ $ section ] ) && is_array ( $ this -> list [ $ section ] ) && in_array ( $ entry , $ this -> list [ $ section ] ) ) throw new InvalidArgumentException ( 'Entry "' . $ entry . '" is already in Section "' . $ section . '".' ) ; $ this -> list [ $ section ] [ ] = $ entry ; }
Adds an Entry to a Section of the List.
@access		public
@param		mixed		$entry			Entry to add
@param		string		$section		Section to add in
@return		void
Adds an Entry to a Section of the List .