File/misc.php

Description

Useful ancillary functions, not helpdesk-specific Copyright OSI 2005.

Useful ancillary functions, not helpdesk-specific Copyright OSI 2005. All rights reserved. It is expected that version 1.0 will be GPLed, but this interim work is kept closed until 1.0 is ready.

Constants
HELPDESKUNIMPLEMENTED = t('To be implemented') (line 14)
Functions
_helpdesk_get_node_property (line 34)

A safer way of accessing a node's properties

A safer way of accessing a node's properties

string _helpdesk_get_node_property (mixed $node, string $prop)
  • mixed $node
  • string $prop
_helpdesk_node_type (line 22)

Returns the type of a node, because Drupal uses two

Returns the type of a node, because Drupal uses two conventions for this: either node passed as its type or as an object

  • return: The node type
string _helpdesk_node_type (mixed $node)
  • mixed $node: The node
_helpdesk_notempty (line 55)

Returns a non empty string for anything passed to it.

Returns a non empty string for anything passed to it.

  • return: HTML code
string _helpdesk_notempty (mixed $var, [string $default = ' '], [bool $debug = FALSE])
  • mixed $var: The var to be displayed.
  • string $default: Value to be returned if variable is empty or non scalar
  • bool $debug: Provides detailed output for non-scalar types instead of defaulting

Documentation generated on Tue, 01 Nov 2005 23:15:03 +0100 by phpDocumentor 1.3.0RC3