Example #1
0
 /**
  * mixed fetch(void)
  *
  * Fetches a row from the query result and populates an array object.
  *
  * @return array returns record log or false if no more logs to fetch
  * @access public
  * @since 0.4
  */
 function fetch()
 {
     $array = parent::fetchRow();
     if ($array == false) {
         return false;
     }
     parent::_incrementRow();
     $record = array();
     $record["login"] = urldecode($array["login"]);
     $record["access_date"] = urldecode($array["access_date"]);
     $record["table_name"] = urldecode($array["table_name"]);
     $record["operation"] = urldecode($array["operation"]);
     $record["affected_row"] = urldecode($array["affected_row"]);
     return $record;
 }
Example #2
0
 /**
  * mixed fetch(void)
  *
  * Fetches a row from the query result and populates an array object.
  *
  * @return array returns access log or false if no more logs to fetch
  * @access public
  * @since 0.4
  */
 function fetch()
 {
     $array = parent::fetchRow();
     if ($array == false) {
         return false;
     }
     parent::_incrementRow();
     $access = array();
     $access["login"] = urldecode($array["login"]);
     $access["access_date"] = urldecode($array["access_date"]);
     $access["id_profile"] = intval($array["id_profile"]);
     return $access;
 }
Example #3
0
 /**
  * mixed fetch(void)
  *
  * Fetches a row from the query result and populates the Patient object.
  *
  * @return mixed returns patient or false if no more patients to fetch
  * @access public
  */
 function fetch()
 {
     $array = parent::fetchRow();
     if ($array == false) {
         return false;
     }
     parent::_incrementRow();
     $patient = new Patient();
     foreach ($array as $key => $value) {
         $setProp = $this->_map[$key]['mutator'];
         if ($setProp && $value) {
             $patient->{$setProp}(urldecode($value));
         }
     }
     return $patient;
 }