Beispiel #1
0
 public function retrieve()
 {
     global $wpdb, $_wt_options;
     $rsvp_id = $this->id;
     $rsvp = null;
     if ($rsvp_id) {
         $rsvp = $wpdb->get_row($wpdb->prepare("SELECT * FROM " . WORDTOUR_ATTENDING . " WHERE rsvp_id = {$rsvp_id}"), "ARRAY_A");
     }
     return parent::retrieve($rsvp);
 }
 public function retrieve()
 {
     global $wpdb, $_wt_options;
     $gallery_id = $this->id;
     $gallery = null;
     if ($gallery_id) {
         $gallery = $wpdb->get_row($wpdb->prepare("SELECT * FROM " . WORDTOUR_GALLERY . " WHERE gallery_id={$gallery_id}"), "ARRAY_A");
     }
     return parent::retrieve($gallery);
 }
 public function retrieve($attachment_id = 0)
 {
     global $wpdb;
     if (!$attachment_id) {
         $attachment_id = $this->id;
     }
     if ($attachment_id) {
         $attachment = $wpdb->get_row($wpdb->prepare("SELECT * FROM " . WORDTOUR_ATTACHMENT . " WHERE attachment_id={$attachment_id}"), "ARRAY_A");
     }
     return parent::retrieve($attachment);
 }
 public function retrieve($social_id = 0)
 {
     global $wpdb;
     if (!$social_id) {
         $social_id = $this->id;
     }
     $facebook = null;
     if ($social_id) {
         $facebook = $wpdb->get_row($wpdb->prepare("SELECT * FROM " . WORDTOUR_SOCIAL . " WHERE social_id={$social_id}"), "ARRAY_A");
     }
     return parent::retrieve($facebook);
 }
 public function retrieve()
 {
     global $wpdb;
     $id = $this->id;
     $comment = null;
     if ($id) {
         $comment = $wpdb->get_row($wpdb->prepare("SELECT *  FROM " . WORDTOUR_COMMENTS . " WHERE comment_id = {$id}"), "ARRAY_A");
         if ($comment) {
             $this->event_id = $comment["comment_event_id"];
         }
     }
     return parent::retrieve($comment);
 }