PrintList2($params); if ( !$ret ) { $block_params = array ('name' => $params['empty_myaddresses_render_as']); $ret = $this->Application->ParseBlock($block_params); } return $ret; } /** * Print location using only filled in fields * * @param Array $params * @return string * @access protected */ protected function PrintLocation($params) { /** @var kDBItem $object */ $object = $this->getObject($params); $ret = ''; $fields = Array ('City', 'State', 'Zip', 'Country'); foreach ($fields as $field) { $value = $object->GetField($field); if ( $field == 'Country' && $value ) { $ret .= '
'; } if ( $value ) { $ret .= $value . ', '; } } return rtrim($ret, ', '); } function EditLink($params) { $tag_processor = $this->Application->recallTagProcessor('m'); $params['pass'] = 'm,addr'; return $tag_processor->Link($params); } function DeleteLink($params) { $params['addr_event'] = 'OnDelete'; return $this->EditLink($params); } function NewLink($params) { $params['addr_event'] = 'OnNew'; return $this->EditLink($params); } function IsProfileAddress($params) { /** @var kDBItem $object */ $object = $this->getObject($params); return $object->GetDBField('IsProfileAddress'); } function BuildListSpecial($params) { if ( $this->Special != '' ) { return $this->Special; } $list_unique_key = $this->getUniqueListKey($params); if ( $list_unique_key == '' ) { return parent::BuildListSpecial($params); } return crc32($list_unique_key); } }