Location: PHPKode > scripts > phpFlickrSynch > phpflickrsynch/_classes/class_Msg.php
<?php
	class Msg {
	
		var $msgs = NULL;
		var $index = 0;
	
		public function Msg() {
			$this->msgs = array();
		}
		
		public function add($msg) {
			$this->msgs[$this->index++] = $msg;
		}
		
		public function getMsgs() {
			return $this->msgs;
		}
		
		public function addArray($msgObj) {
			foreach ($msgObj->getMsgs() as $key => $msg) {
				$this->msgs[$this->index++] = $msg;
			}
		}
		
		public function toString() {
			$text = '';
			$nb = 0;
			foreach ($this->msgs as $key => $msg) {
				$nb++;
				$text .= '<li class="done">' . $msg . ' <span class="green">DONE</span></li>';
			}
			return $text;
		}
	
	}
?>
Return current item: phpFlickrSynch