Class miUtil

Description

miUtil static class. Contains various utility methods

  • copyright: Copyright (c) 2004-2006 Mirchev Ideas Ltd. All rights reserved.

Located in /util/Util.php (line 14)


	
			
Method Summary
static array getDBArray (string $query, string $field_key, string $field_value)
static boolean sendEmail (string $to, string $from, string $subject, string $text)
Methods
static method getDBArray (line 44)

Read values from a DB and return them as an array

  • return: array with the returned from DB keys => values or empty array if an error appear or there is no returned rows
  • access: public
static array getDBArray (string $query, string $field_key, string $field_value)
  • string $query: the query that will be executed
  • string $field_key: the name of the field which values will be the array keys
  • string $field_value: the name of the field which values will be the values associate to the keys
static method sendEmail (line 27)

Mails the message specified in $text to the receiver specified in $to The function uses the mail() php builtin and doesn't preform any additional checks of the params

  • return: true if the mail was successfully accepted for delivery, false otherwise
  • access: public
static boolean sendEmail (string $to, string $from, string $subject, string $text)
  • string $to: recipient email address
  • string $from: sender email address
  • string $subject: subject of the email
  • string $text: email contents

Documentation generated on Thu, 08 May 2008 16:57:52 +0300 by phpDocumentor 1.4.1