function getTag() { //Check to see if any temporary data is set for the tags, if not, make a call to the database instead. //postSave() needs to get the tmp_data. if (isset($this->tmp_data['tags'])) { return $this->tmp_data['tags']; } elseif (is_object($this->getKPIObject()) and $this->getKPIObject()->getCompany() > 0 and $this->getID() > 0) { return CompanyGenericTagMapListFactory::getStringByCompanyIDAndObjectTypeIDAndObjectID($this->getKPIObject()->getCompany(), 330, $this->getID()); } return FALSE; }
static function getStringByCompanyIDAndObjectTypeIDAndObjectID($company_id, $object_type_id, $object_id) { $cgtmlf = new CompanyGenericTagMapListFactory(); $lf = $cgtmlf->getByCompanyIDAndObjectTypeAndObjectID($company_id, $object_type_id, $object_id); return implode(',', (array) $cgtmlf->getArrayByListFactory($lf)); }