public static function &makeDB(&$row)
{
$in = @array('id' => $row['pending_id'], 'subscriber_id' => $row['subscriber_id'], 'code' => $row['pending_code'], 'array' => unserialize($row['pending_array']), 'type' => $row['pending_type']);
$o = Pommo_Type::pending();
return Pommo_Api::getParams($o, $in);
}
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; }