setData() public method

Sets the data array.
public setData ( array $data )
$data array The data array to store internally.
Example #1
0
File: Sql.php Project: horde/horde
 /**
  * Get the queued information for all pending signups.
  *
  * @return array  An array of signup objects, one for each signup in the
  *                queue.
  * @throws Horde_Db_Exception
  */
 public function getQueuedSignups()
 {
     $query = 'SELECT * FROM ' . $this->_params['table'] . ' ORDER BY signup_date';
     $result = $GLOBALS['injector']->getInstance('Horde_Core_Factory_Db')->create('horde', 'signup')->select($query);
     $signups = array();
     foreach ($result as $signup) {
         $object = new Horde_Core_Auth_Signup_SqlObject($signup['user_name']);
         $object->setData($signup);
         $signups[] = $object;
     }
     return $signups;
 }