Exemplo n.º 1
0
 public function __construct($db, $post_id = null)
 {
     parent::__construct($db, 'blog_posts_profile');
     if ($post_id > 0) {
         $this->setPostId($post_id);
     }
 }
Exemplo n.º 2
0
 public function __construct($db, $userID = null)
 {
     parent::__construct($db, 'users_profiles');
     if ($userID > 0) {
         $this->setUserId($userID);
     }
 }
Exemplo n.º 3
0
 public function __construct($db, $product_id = null)
 {
     parent::__construct($db, 'user_products_profile');
     //echo "<br/>here at profile construct<br/>";
     if ($product_id > 0) {
         $this->setPostId($product_id);
     }
 }
Exemplo n.º 4
0
 public function __construct($db, $univeralDue_id = null)
 {
     parent::__construct($db, 'universal_dues_profile');
     //echo "<br/>here at profile construct<br/>";
     if ($univeralDue_id > 0) {
         $this->setUniversalDueId($univeralDue_id);
     }
 }
Exemplo n.º 5
0
 public function __construct($db, $individualDue_key = null)
 {
     parent::__construct($db, 'individual_dues_profile');
     //echo "<br/>here at profile construct<br/>";
     if (strlen($individualDue_key) > 0) {
         $this->setIndividualDueId($individualDue_key);
     }
 }
Exemplo n.º 6
0
 public function __construct($db, $promotion_id = null)
 {
     parent::__construct($db, 'promotions_profile');
     //echo "<br/>here at profile construct<br/>";
     if ($promotion_id > 0) {
         $this->setPromotionId($promotion_id);
     }
 }
Exemplo n.º 7
0
 public function __construct($db, $message_id = null)
 {
     parent::__construct($db, 'receiver_messages_profile');
     //echo "<br/>here at profile construct<br/>";
     if (strlen($message_id) > 0) {
         $this->setMessageId($message_id);
     }
 }
Exemplo n.º 8
0
 public function __construct($db, $event_id = null)
 {
     parent::__construct($db, 'events_profile');
     //echo "<br/>here at profile construct<br/>";
     if ($event_id > 0) {
         $this->setEventId($event_id);
     }
 }
Exemplo n.º 9
0
 /**
  * Class Constructor
  *
  * @param integer $user_id
  */
 public function __construct($userId = 0, $cacheMinutes = 0, $dbInstanceKey = null)
 {
     parent::__construct($dbInstanceKey);
     if (!is_numeric($userId)) {
         throw new InvalidArgumentException("Received invalid user_id");
     }
     $this->userId = $userId;
     $this->initUserAnswers($cacheMinutes);
 }
Exemplo n.º 10
0
 public function __construct($db, $profile_id = null)
 {
     parent::__construct($db, 'shopping_cart_profile_attribute');
     //second is the table name for the profile
     //echo "<br/> here at profile_blogpost.";
     //echo "<br/>current post id at profile_blogpost: ".$post_id;
     if ($profile_id > 0) {
         //echo "<br/> here at setting the id";
         $this->setPostId($profile_id);
         //inserting the post id
     }
 }
Exemplo n.º 11
0
 public function __construct($profileId, Agent $agent)
 {
     parent::__construct($profileId);
     $this->agent = $agent;
 }
Exemplo n.º 12
0
 function __construct($proxy = "192.168.1.23")
 {
     parent::__construct("certified-proxy");
     $this->proxy = $proxy;
 }
Exemplo n.º 13
0
 /**
  * @param string   $profileId
  * @param Activity $activity
  */
 public function __construct($profileId, Activity $activity)
 {
     parent::__construct($profileId);
     $this->activity = $activity;
 }