makeDB() public static method

return a pending object (array)
public static makeDB ( &$row )
Exemplo n.º 1
0
 function getBySubID($id = null)
 {
     global $pommo;
     $dbo =& Pommo::$_dbo;
     $o = array();
     $query = "\n\t\t\tSELECT *\n\t\t\tFROM " . $dbo->table['subscriber_pending'] . "\n\t\t\tWHERE subscriber_id=%i LIMIT 1";
     $query = $dbo->prepare($query, array($id));
     while ($row = $dbo->getRows($query)) {
         $o = Pommo_Pending::makeDB($row);
     }
     return empty($o) ? false : $o;
 }