Copyright 2008-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://opensource.org/licenses/lgpl-2.1.php
Author: Duck (duck@obala.net)
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;
 }