public static function email($to, $subject, $message)
 {
     ValidatorsUtil::isNullOrEmpty($to, "Email");
     ValidatorsUtil::isNullOrEmpty($subject, "Email subject");
     ValidatorsUtil::isNullOrEmpty($message, "Email message");
     //This will allow us to send html text
     $header = "MIME-Version: 1.0\n" . "Content-type: text/html; charset=iso-8859-1";
     mail($to, $subject, $message, $header);
 }
 /**
  * Getting all the records pulled from the database.<p>
  *
  * @return Array an array of objects
  */
 public function getDocuments()
 {
     ValidatorsUtil::isNullOrEmpty($this->_mongoCollection, "Mongo collection isn't valid, have you set a collection?");
     return $this->_documents;
 }