subscriber() public static method

== Additional columns for Pending == pending_id (int) Database ID/Key subscriber_id (int) Subscriber ID in subscribers table pending_code (str) Code to complete pending request pending_type (enum) 'add','del','change','password',NULL (def: null) pending_array (str) Serialized Subscriber object (for update) == Additional Data Columns == data_id (int) Database ID/Key field_id (int) Field ID in fields table subscriber_id (int) Subscriber ID in subscribers table value (str) Subscriber's field value
public static subscriber ( )
コード例 #1
0
ファイル: Pommo_Subscribers.php プロジェクト: soonick/poMMo
 public static function makeDB(&$row, $pending = FALSE)
 {
     $in = @array('id' => $row['subscriber_id'], 'email' => $row['email'], 'touched' => $row['time_touched'], 'registered' => $row['time_registered'], 'flag' => $row['flag'], 'ip' => $row['ip'], 'status' => $row['status']);
     if ($pending) {
         $o = array('pending_code' => $row['pending_code'], 'pending_array' => $row['pending_array'], 'pending_type' => $row['pending_type']);
         $in = array_merge($o, $in);
     }
     $o = $pending ? Pommo_Api::getParams(Pommo_Type::subscriberPending(), $in) : Pommo_Api::getParams(Pommo_Type::subscriber(), $in);
     return $o;
 }
コード例 #2
0
ファイル: Pommo_Type.php プロジェクト: systemfirez/poMMo
 function &subscriberPending()
 {
     $o = Pommo_Type::subscriber();
     $o['pending_code'] = $o['pending_array'] = $o['pending_type'] = null;
     return $o;
 }