function getItemCode(){ if($this->item_code_id <= 0){ $this->error = "SI_TaskActivity::getItemCode(): Item Code id is not set"; return FALSE; } if($this->_item_code == FALSE){ $ic = new SI_ItemCode(); if($ic->get($this->item_code_id) === FALSE){ $this->error = "SI_TaskActivity::getItemCode(): Error getting item code {$this->item_code_id}: ".$ic->getLastError(); return FALSE; } $this->_item_code =& $ic; } return $this->_item_code; }