public function __construct(DatabaseObject_BlogPost $post)
 {
     parent::__construct();
     $this->post = $post;
     $this->location = new DatabaseObject_BlogPostLocation($post->getDb());
     $this->location->post_id = $this->post->getId();
 }
Beispiel #2
0
 public function __construct($db, $userID)
 {
     parent::__construct();
     $this->db = $db;
     $this->fabricSet = new DatabaseObject_Attribute_FabricSet($db);
     $this->userID = $userID;
 }
 public function __construct($db)
 {
     parent::__construct();
     $this->db = $db;
     $this->user = new DatabaseObject_User($db);
     $this->user->type = 'member';
 }
 public function __construct($product)
 {
     parent::__construct();
     $this->db = $product->getDb();
     $this->product = $product;
     $this->measurementAttribute = new DatabaseObject_Attribute_MeasurementWithImageAttribute($this->db);
 }
Beispiel #5
0
 public function __construct(DatabaseObject_BlogPost $post)
 {
     parent::__construct();
     $this->post = $post;
     $this->image = new DatabaseObject_BlogPostImage($post->getDb());
     $this->image->post_id = $this->post->getId();
 }
 /**
  * function __construct
  * <pre>
  * Initialize the object.
  * </pre>
  * @param $pathModuleRoot [STRING] The path to this module's root directory
  * @param $viewer [OBJECT] The viewer object.
  * @param $formAction [STRING] The action on a form submit
  * @param $transition_id [STRING] The init data for the dataManager obj
  * @param $noListInitVarDefined [STRING] The init data for the dataList obj
  * @param $module_id [INTEGER] The foreign key data for the data Manager
  * @return [void]
  */
 function __construct($pathModuleRoot, $viewer, $formAction, $transition_id, $noListInitVarDefined, $module_id = '')
 {
     // NOTE: be sure to call the parent constructor before trying to
     //       use the ->formXXX arrays...
     parent::__construct(FormProcessor_PageLists::FORM_FIELDS);
     $this->pathModuleRoot = $pathModuleRoot;
     $this->viewer = $viewer;
     $this->formAction = $formAction;
     $this->editLink = '#';
     $this->continueLink = '#';
     $this->transition_id = $transition_id;
     $this->noListInitVarDefined = $noListInitVarDefined;
     $this->module_id = $module_id;
     // figure out the important fields for the dataManager
     $fieldsOfInterest = implode(',', $this->formFields);
     $this->dataManager = new RowManager_TransitionsManager($transition_id);
     $this->dataManager->setFieldsOfInterest($fieldsOfInterest);
     $this->formValues = $this->dataManager->getArrayOfValues();
     // now initialize the labels for this page
     // start by loading the default field labels for this Module
     $languageID = $viewer->getLanguageID();
     $seriesKey = moduleRAD::MULTILINGUAL_SERIES_KEY;
     $pageKey = moduleRAD::MULTILINGUAL_PAGE_FIELDS;
     $this->labels = new XMLObject_MultilingualManager($languageID, $seriesKey, $pageKey);
     // load the site default form link labels
     $this->labels->loadPageLabels(SITE_LABEL_SERIES_SITE, SITE_LABEL_PAGE_FORM_LINKS);
     // then load the page specific labels for this page
     $pageKey = FormProcessor_PageLists::MULTILINGUAL_PAGE_KEY;
     $this->labels->loadPageLabels($seriesKey, $pageKey);
 }
Beispiel #7
0
 public function __construct($db, $table, $product_tag, $product_id)
 {
     parent::__construct();
     //$this->product = $object;
     $this->image = new DatabaseObject_Image($db, $table, $product_tag);
     $this->image->Product_id = $product_id;
 }
 public function __construct($db, $user)
 {
     parent::__construct();
     $this->db = $db;
     $this->MenMeasurement = new DatabaseObject_Measurement_MenMeasurement($this->db);
     $this->User_referee_id = $user->referee_id;
     $this->user = $user;
     echo 'user id is: ' . $this->User_referee_id;
     if ($user->measurement == 1) {
         if ($this->MenMeasurement->loadForPost($this->User_referee_id)) {
             $this->body_height = $this->MenMeasurement->body_height;
             $this->neck = $this->MenMeasurement->neck;
             $this->chest = $this->MenMeasurement->chest;
             $this->shoulder = $this->MenMeasurement->shoulder;
             $this->armpit_circumference = $this->MenMeasurement->armpit_circumference;
             $this->arm_length = $this->MenMeasurement->arm_length;
             $this->shoulder_waist = $this->MenMeasurement->shoulder_waist;
             $this->waist = $this->MenMeasurement->waist;
             $this->hip = $this->MenMeasurement->hip;
             $this->thigh = $this->MenMeasurement->thigh;
             $this->length_pants = $this->MenMeasurement->length_pants;
         } else {
             echo 'error loading pants';
         }
     } else {
         echo 'user dose not have measurement';
     }
 }
 public function __construct($db, $userID)
 {
     parent::__construct();
     $this->db = $db;
     $this->user = new DatabaseObject_User($db);
     $this->user->load($userID);
     //echo "univerity_id: ".$this->user->university_id;
     //$this->university = DatabaseObject_StaticUtility::loadUniversityName($db, $this->user->university_id);
     $this->profile_type = $this->user->user_type;
     //echo "your university: ".$this->university;
     $this->email = $this->user->profile->email;
     $this->first_name = $this->user->profile->first_name;
     $this->last_name = $this->user->profile->last_name;
     $this->club_public = $this->user->status;
     $this->num_posts = $this->user->profile->num_posts;
     $this->paypalEmail = $this->user->profile->paypalEmail;
     $this->club_description = $this->user->profile->club_description;
     $this->address = $this->user->profile->address;
     $this->zip = $this->user->profile->zip;
     $this->city = $this->user->profile->city;
     $this->state = $this->user->profile->state;
     //echo $this->paypalEmail;
     if ($this->user->user_type == 'clubAdmin') {
         foreach ($this->publicProfile as $key => $label) {
             $this->{$key} = $this->user->profile->{$key};
         }
     }
 }
 public function __construct($db)
 {
     parent::__construct();
     $this->db = $db;
     $this->user = new DatabaseObject_User($db);
     $this->universities = DatabaseObject_StaticUtility::loadUniversities($db);
 }
 public function __construct($db, $userID = '', $type = '')
 {
     parent::__construct();
     $this->db = $db;
     $this->userID = $userID;
     $this->type = $type;
     echo "here at php type is: " . $this->type;
     $this->sellerInformation = new DatabaseObject_SellerInformation($db);
     if (($type == 'generalSeller' || $type == 'storeSeller') && $userID != '') {
         if ($this->sellerInformation->load($userID)) {
             echo "<br />here at load<br />";
             echo "sellerInformation->paypal_email is: " . $this->sellerInformation->paypal_email . "<br />";
             $this->paypal_email = $this->sellerInformation->paypal_email;
             $this->verified = $this->sellerInformation->verified;
             echo "this fp paypal_email is: " . $this->paypal_email . "<br />";
             $this->phone_number = $this->sellerInformation->phone_number;
             $this->items_description = $this->sellerInformation->items_description;
             $this->store_description = $this->sellerInformation->store_description;
             $this->address_one = $this->sellerInformation->address_one;
             $this->address_two = $this->sellerInformation->address_two;
             $this->zip = $this->sellerInformation->zip;
             $this->city = $this->sellerInformation->city;
             $this->state = $this->sellerInformation->state;
             $this->country = $this->sellerInformation->country;
         }
     }
 }
 public function __construct($db, $userID)
 {
     parent::__construct();
     $this->db = $db;
     $this->inventoryProduct = new DatabaseObject_Inventory_Product($db);
     $this->userID = $userID;
 }
 public function __construct($db, $signedInUserSessionInfoHolder, $product_type, $product_tag, $product_id = 0, $specificProductTypeConfig)
 {
     parent::__construct();
     $this->db = $db;
     $this->product = new DatabaseObject_UserProducts($this->db);
     $this->userID = $signedInUserSessionInfoHolder->generalInfo->userID;
     $this->product_tag = $product_tag;
     $this->username = $signedInUserSessionInfoHolder->generalInfo->username;
     $this->user_network = $signedInUserSessionInfoHolder->generalInfo->affiliation;
     $this->user_city = $signedInUserSessionInfoHolder->sellerInfo->city;
     $this->product_type = $product_type;
     $this->specificProductTypeConfig = $specificProductTypeConfig;
     //Zend_Debug::dump($productTypeConfig);
     echo "product_id: " . $product_id;
     if ($this->product->getProductForUser($this->userID, $product_id, $product_type)) {
         $this->product_id = $product_id;
         $this->name = $this->product->name;
         $this->shipping_rate = $this->product->shipping_rate;
         $this->quantity = $this->product->quantity;
         $this->price = $this->product->price;
         $this->product_tag = $this->product->product_tag;
         $this->brand = $this->product->brand;
         $this->reward_point = $this->product->reward_point;
         $this->video_youtube = $this->product->video_youtube;
         $this->description = $this->product->profile->description;
         foreach ($this->specificProductTypeConfig['measurement'] as $k => $v) {
             $this->{$k} = $this->product->{$k};
         }
     }
 }
 public function __construct(DatabaseObject $object)
 {
     parent::__construct();
     $this->product = $object;
     $this->image = new DatabaseObject_Attribute_ImageAttribute($this->product->getDb());
     //Zend_Debug::dump($this->product);
     //echo 'imageattribvute productusername'. $this->product->username.'<br />';//$this->image->Product_id = $this->product->getId();
 }
 public function __construct($db, $table, $userID)
 {
     parent::__construct();
     $this->db = $db;
     $this->customSet = new DatabaseObject_Attribute_CustomAttribute($db, $table);
     $this->userID = $userID;
     $this->table = $table;
 }
Beispiel #16
0
 public function __construct($db)
 {
     parent::__construct();
     $this->db = $db;
     $this->guest = new DatabaseObject_Guest($db);
     //$this->guest->loadByID($userID);
     //$this->universities = DatabaseObject_StaticUtility::loadUniversities($db);
     //$this->club_types = DatabaseObject_StaticUtility::loadTypes($db);
 }
 public function __construct($db, $userID, $product)
 {
     parent::__construct();
     $this->db = $db;
     $this->inventoryProduct = new DatabaseObject_Inventory_Product($db);
     $this->userID = $userID;
     $this->productID = $product->getId();
     $this->sys_price = $product->price;
 }
 public function __construct($product)
 {
     parent::__construct();
     $this->db = $product->getDb();
     $this->SizeAttribute = new DatabaseObject_Attribute_SizeAttribute($this->db);
     $this->SizeAttribute->product_type_table = $product->product_type;
     $this->SizeAttribute->product_id = $product->getId();
     $this->SizeAttribute->username = $product->username;
 }
 public function __construct($db, DatabaseObject $objects)
 {
     parent::__construct();
     $this->objects = $objects;
     if ($this->objects->isSaved()) {
         echo "<br/>due at is saved.";
         $this->name = $this->objects->profile->name;
         $this->content = $this->objects->profile->content;
         $this->price = $this->objects->profile->price;
         $this->ts_created = $this->objects->date_set;
         echo "<br/>this name is: " . $this->name;
     }
 }
Beispiel #20
0
 public function __construct($db, $loggedInUser = NULL)
 {
     parent::__construct();
     $this->db = $db;
     $this->shoutout = new DatabaseObject_Shoutout($this->db);
     if ($loggedInUser != NULL) {
         //echo 'here at lggedInUser != null';
         $this->loggedInUser = true;
         $this->shoutout_username = $loggedInUser->username;
         $this->shoutout_user_id = $loggedInUser->getId();
         //echo $this->shoutout_username;
         //echo 'AT CONSTRUCT '.$this->shoutout_user_id;
     }
 }
Beispiel #21
0
 public function __construct($db, $loggedInUser = NULL)
 {
     parent::__construct();
     $this->db = $db;
     $this->sender = new DatabaseObject_SenderMessage($db);
     $this->receiver = new DatabaseObject_ReceiverMessage($db);
     if ($loggedInUser != NULL) {
         //echo 'here at lggedInUser != null';
         $this->loggedInUser = true;
         $this->sender_username = $loggedInUser->username;
         $this->sender_user_id = $loggedInUser->getId();
         //echo $this->sender_username;
     }
 }
Beispiel #22
0
 public function __construct($db, $user_id)
 {
     parent::__construct();
     $this->db = $db;
     $this->user = new DatabaseObject_User($db);
     $this->user->load($user_id);
     $this->email = $this->user->profile->email;
     $this->first_name = $this->user->profile->first_name;
     $this->last_name = $this->user->profile->last_name;
     $this->blog_public = $this->user->profile->blog_public;
     $this->num_posts = $this->user->profile->num_posts;
     foreach ($this->publicProfile as $key => $label) {
         $this->{$key} = $this->user->profile->{$key};
     }
 }
Beispiel #23
0
 public function __construct($db, $user_id, $post_id = 0)
 {
     parent::__construct();
     $this->db = $db;
     $this->user = new DatabaseObject_User($db);
     $this->user->load($user_id);
     $this->post = new DatabaseObject_BlogPost($db);
     $this->post->loadForUser($this->user->getId(), $post_id);
     if ($this->post->isSaved()) {
         $this->title = $this->post->profile->title;
         $this->content = $this->post->profile->content;
         $this->ts_created = $this->post->ts_created;
     } else {
         $this->post->user_id = $this->user->getId();
     }
 }
 public function __construct($db, $userID)
 {
     parent::__construct();
     $this->db = $db;
     $this->user = new DatabaseObject_User($db);
     if ($this->user->load($userID)) {
         $this->user_type = $this->user->user_type;
         $this->email = $this->user->email;
         $this->first_name = $this->user->first_name;
         $this->last_name = $this->user->last_name;
         $this->sex = $this->user->sex;
         $this->username = $this->user->username;
         $this->affiliation = $this->user->profile->affiliation;
         $this->experience = $this->user->profile->experience;
         $this->hear_about_us = $this->user->profile->hear_about_us;
         $this->reward_point = $this->user->reward_point;
     }
 }
Beispiel #25
0
 public function __construct($db, $userID, $username, $product_type, $product_id = 0)
 {
     parent::__construct();
     $this->db = $db;
     $this->product = ObjectGenerator::generateProductForListing($db, $product_type);
     $this->userID = $userID;
     $this->username = $username;
     echo "product_id: " . $product_id;
     if ($this->product->load($product_id)) {
         echo "here at load product id<br />";
         $this->product_id = $product_id;
         $this->name = $this->product->name;
         $this->price = $this->product->price;
         $this->brand = $this->product->brand;
         $this->reward_point = $this->product->reward_point;
         $this->discount_price = $this->product->discount_price;
         $this->video_youtube = $this->product->video_youtube;
         $this->description = $this->product->profile->description;
     }
 }
 public function __construct($db, $uploader, $product)
 {
     parent::__construct();
     $this->db = $db;
     $this->product = $product;
     //$this->
     $this->userID = $uploader->userID;
     $this->uploader_username = $uploader->username;
     $this->product_type = $product['product_type'];
     $this->uploader_network = $uploader->affiliation;
     $this->uploader_email = $uploader->email;
     $this->purchase_type = $product['purchase_type'];
     $this->product_tag = $product['product_tag'];
     $this->purchase = $product['purchase_type'];
     $this->product_category = $product['product_category'];
     echo "product_id: " . $product['product_id'];
     $this->product_id = $product['product_id'];
     //if($this->product->load($this->product_id)){
     $this->product_tag = $product['product_tag'];
     //}
 }
 public function __construct($db, $addressID = '', $userID = '')
 {
     parent::__construct();
     $this->db = $db;
     $this->shippingAddress = new DatabaseObject_ShippingAddress($db);
     $this->shippingAddress->User_id = $userID;
     if ($addressID !== '') {
         if ($this->shippingAddress->loadByIDs($addressID, $userID)) {
             $this->address_one = $this->shippingAddress->address_one;
             $this->address_two = $this->shippingAddress->address_two;
             $this->zip = $this->shippingAddress->zip;
             $this->city = $this->shippingAddress->city;
             $this->state = $this->shippingAddress->state;
             $this->country = $this->shippingAddress->country;
             $this->addShipping = false;
         } else {
             $this->addShipping = true;
         }
     } else {
         $this->addShipping = true;
     }
 }
Beispiel #28
0
 public function __construct($db, $userID, $event_id = 0)
 {
     parent::__construct();
     $this->db = $db;
     $this->user = new DatabaseObject_User($db);
     $this->user->load($userID);
     //load everything about the user.
     $this->event = new DatabaseObject_Event($db);
     $databaseColumn = 'event_id';
     DatabaseObject_StaticUtility::loadObjectForUser($this->event, $this->user->getId(), $event_id, $databaseColumn);
     if ($this->event->isSaved()) {
         //echo "<br/>post at is saved.";
         $this->name = $this->event->profile->name;
         $this->content = $this->event->profile->content;
         $this->ts_created = $this->event->ts_created;
         $this->ts_end = $this->event->ts_end;
     } else {
         //echo "<br/>post user_id is getId(): ".$this->user->getId();
         $this->event->user_id = $this->user->getId();
         //$this->user_id at blogPost object came from this.
     }
 }
 public function __construct($db, $user)
 {
     parent::__construct();
     $this->db = $db;
     $this->WomenMeasurement = new DatabaseObject_Measurement_WomenMeasurement($this->db);
     $this->User_referee_id = $user->referee_id;
     $this->user = $user;
     $this->WomenMeasurement->username = $this->user->username;
     $this->WomenMeasurement->userID = $this->user->getId();
     echo 'user id is: ' . $this->User_referee_id;
     if ($user->measurement == 1) {
         if ($this->WomenMeasurement->loadForPost($this->User_referee_id)) {
             $this->body_height = $this->WomenMeasurement->body_height;
             $this->neck = $this->WomenMeasurement->neck;
             $this->chest = $this->WomenMeasurement->chest;
             $this->bust = $this->WomenMeasurement->bust;
             $this->bust_bust = $this->WomenMeasurement->bust_bust;
             $this->bust_waist = $this->WomenMeasurement->bust_waist;
             $this->shoulder_bust = $this->WomenMeasurement->shoulder_bust;
             $this->shoulder_to_waist = $this->WomenMeasurement->shoulder_to_waist;
             $this->nape_waist = $this->WomenMeasurement->nape_waist;
             $this->shoulder = $this->WomenMeasurement->shoulder;
             $this->armpit_circumference = $this->WomenMeasurement->armpit_circumference;
             $this->arm_length = $this->WomenMeasurement->arm_length;
             $this->bicept = $this->WomenMeasurement->bicept;
             $this->wrist = $this->WomenMeasurement->wrist;
             $this->waist = $this->WomenMeasurement->waist;
             $this->waist_floor = $this->WomenMeasurement->waist_floor;
             $this->hip = $this->WomenMeasurement->hip;
             $this->crotch = $this->WomenMeasurement->crotch;
         } else {
             echo 'error loading pants';
         }
     } else {
         echo 'user dose not have measurement';
     }
 }
Beispiel #30
0
 public function __construct($db, $uploader, $params = array())
 {
     parent::__construct();
     $this->db = $db;
     $this->product = new DatabaseObject_Products($this->db);
     $this->userID = $uploader->generalInfo->userID;
     $this->uploader_username = $uploader->generalInfo->username;
     $this->product_type = $params['product_type'];
     $this->uploader_network = $uploader->sellerInfo->country;
     $this->uploader_email = $uploader->generalInfo->email;
     $this->purchase_type = $params['purchase_type'];
     $this->product_tag = $params['product_tag'];
     $this->purchase = $params['purchase_type'];
     $this->product_category = $params['product_category'];
     //echo "product_id: ".$params['product_id'];
     $this->product_id = $params['product_id'];
     $this->inventory_attribute_table = $params['inventory_attribute_table'];
     if ($this->product->load($this->product_id)) {
         $this->product_tag = $this->product->product_tag;
         $this->product_type = $this->product->product_type;
         $this->purchase_type = $this->product->purchase_type;
         $this->product_category = $this->product->product_category;
         $this->name = $this->product->name;
         $this->price = $this->product->price;
         $this->domestic_shipping_rate = $this->product->domestic_shipping_rate;
         $this->international_shipping_rate = $this->product->international_shipping_rate;
         $this->brand = $this->product->brand;
         $this->backorder_time = $this->product->backorder_time;
         $this->reward_point = $this->product->reward_point;
         $this->discount_price = $this->product->discount_price;
         $this->video_youtube = $this->product->video_youtube;
         $this->description = $this->product->profile->description;
         $this->social_usage = $this->product->social_usage;
         $this->competition_usage = $this->product->competition_usage;
     }
 }