예제 #1
0
	/**
	 *	Overload default {@see AtomizerStruct::fromArray} function to support
	 *	inclusion of items
	 *
	 *	@param	Array	The array to create this feed from
	 */
	public function fromArray( $arr ) {

		parent::fromArray( $arr );
		
		if( $arr && $arr['items']) {
			foreach( $arr['items'] as $item ) {
				$this->addItem( new AtomizerItem( $item ) );
			}
		}
	}