function unique_id() { return sugar_microtime(); }
/** * based off of a base name it sets base, offset, and order by variable names to retrieve them from requests and sessions * * @param unknown_type $baseName */ function setVariableName($baseName, $where, $listviewName = null) { global $timedate; $module = !empty($listviewName) ? $listviewName : $_REQUEST['module']; $this->var_name = $module . '2_' . strtoupper($baseName); $this->var_order_by = $this->var_name . '_ORDER_BY'; $this->var_offset = $this->var_name . '_offset'; $timestamp = sugar_microtime(); $this->stamp = $timestamp; $_SESSION[$module . '2_QUERY_QUERY'] = $where; $_SESSION[strtoupper($baseName) . "_FROM_LIST_VIEW"] = $timestamp; $_SESSION[strtoupper($baseName) . "_DETAIL_NAV_HISTORY"] = false; }
/** * @deprecated for public use * @todo: move to separate utility class? */ function get_microtime_string() { return sugar_microtime(); }