build a valid query string from an array
values that are arrays will be handled properly: their correpsonding keys are expected to be of the form array[]
string
build_query_str
(array $params)
-
array
$params: a array of $key => value parameters
create a SELECT listbox to choose a customer in the ones allowed
string
customer_listbox
([mixed $customer = null], [mixed $values = null], [mixed $name = 'customer'], string $fieldname)
-
mixed
$customer:
if given, the list of customers to create the tree for. defaults to User::allowed_customers_arr().
If not given or null, all the customers accessible to the currently logged-in user will be listed. If no user is currently logged in, the whole list is returned.
-
string
$fieldname: the name of the SELECT tag
-
mixed
$values: @see form_select(). defaults to $_POST
extract the parts of a phone number formatted as in phone()
void
extract_phone
(mixed $phone)
a
first_page
(mixed &$it, mixed $url, mixed $args, mixed $text)
void
last_page
(mixed &$it, mixed $url, mixed $args, mixed $text)
ease navigation through multiple pages
this returns the next offset based on the given offset and count, and based on wether we're looking for the next or previous link
next: new offset = offset + count prev: new offset = max(offset - count, 0)
null
link
(mixed &$it, mixed $next, [mixed $offset = null], [mixed $count = null])
void
method_listbox
([mixed $values = null], [mixed $onchange = null])
Create a navigation bar from the given iterator
a
navigation_bar
(mixed &$it, mixed $url, mixed $args, [mixed $lang = 'en'])
void
next_link
(mixed &$it, [mixed $offset = null], [mixed $count = null])
a
next_page
(mixed &$it, mixed $url, mixed $args, mixed $text)
a
numeric_links
(mixed &$it, mixed $url, mixed $args, mixed $max_num_link)
Generate a phone number
Static function. Generates a phone number in a standard format: (rrr) nnn-nnnn [eee] The function makes no verification on the arguments it is fed.
void
phone
(mixed $region, mixed $main_1, mixed $main_2, [mixed $ext = null])
void
prev_link
(mixed &$it, [mixed $offset = null], [mixed $count = null])
a
prev_page
(mixed &$it, mixed $url, mixed $args, mixed $text)
the
price
(mixed $price, [mixed $UofM = null], [mixed $currency = null], [mixed $acronym = NULL])
void
project_facture
(mixed $proj, mixed $depth, [mixed $bounds = null])
void
project_list
(mixed $proj, mixed $depth)
create a SELECT listbox for all the projects in the given customer
string
project_listbox
([mixed $customer = null], [mixed $values = null], [string $fieldname = 'parent'], [bool $empty_parent = false], [mixed $favorites_only = true])
-
mixed
$customer:
if given, the list of customers to create the tree for.
Can be a string, in which case it is taken as a single customer, and the customer itself is not printed within the list.
If not given or null, all the customers accessible to the currently logged-in user will be listed. If no user is currently logged in, the whole list is returned.
-
mixed
$values: @see form_select()
-
string
$fieldname: the name of the SELECT tag
-
bool
$empty_parent: if the an empty parent tag must be created, false by default. if set to true, it will be set to the $customer. only appliable when $customer is not an array.
void
project_method
([mixed $method = 'a'], mixed $proj, mixed $depth)
void
project_method_a
(mixed $proj, mixed $depth)
void
project_method_b
(mixed $proj, mixed $depth)
void
project_pref
(mixed $proj, mixed $depth)
void
project_punch
(mixed $proj, mixed $depth)
void
time_entry_table
(mixed $bounds, [mixed $user = null])
void
user_listbox
(mixed $customer, [mixed $name = 'user'], [mixed $values = null])