当前位置: 首页>>代码示例>>PHP>>正文


PHP FormProcessor::__construct方法代码示例

本文整理汇总了PHP中FormProcessor::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP FormProcessor::__construct方法的具体用法?PHP FormProcessor::__construct怎么用?PHP FormProcessor::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在FormProcessor的用法示例。


在下文中一共展示了FormProcessor::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 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();
 }
开发者ID:kalroot,项目名称:phpweb20demo,代码行数:7,代码来源:BlogPostLocation.php

示例2: __construct

 public function __construct($db, $userID)
 {
     parent::__construct();
     $this->db = $db;
     $this->fabricSet = new DatabaseObject_Attribute_FabricSet($db);
     $this->userID = $userID;
 }
开发者ID:vinnivinsachi,项目名称:Vincent-DR,代码行数:7,代码来源:FabricSet.php

示例3: __construct

 public function __construct($db)
 {
     parent::__construct();
     $this->db = $db;
     $this->user = new DatabaseObject_User($db);
     $this->user->type = 'member';
 }
开发者ID:kalroot,项目名称:phpweb20demo,代码行数:7,代码来源:UserRegistration.php

示例4: __construct

 public function __construct($product)
 {
     parent::__construct();
     $this->db = $product->getDb();
     $this->product = $product;
     $this->measurementAttribute = new DatabaseObject_Attribute_MeasurementWithImageAttribute($this->db);
 }
开发者ID:vinnivinsachi,项目名称:Vincent-DR,代码行数:7,代码来源:MeasurementAttribute.php

示例5: __construct

 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();
 }
开发者ID:kalroot,项目名称:phpweb20demo,代码行数:7,代码来源:BlogPostImage.php

示例6: implode

 /**
  * 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);
 }
开发者ID:andrewroth,项目名称:c4c_intranet,代码行数:43,代码来源:page_PageLists.php

示例7: __construct

 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;
 }
开发者ID:vinnivinsachi,项目名称:Vincent-DR,代码行数:7,代码来源:Image.php

示例8: __construct

 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';
     }
 }
开发者ID:vinnivinsachi,项目名称:Vincent-DR,代码行数:28,代码来源:MenMeasurement.php

示例9: __construct

 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};
         }
     }
 }
开发者ID:vinnivinsachi,项目名称:Vincent-DR,代码行数:28,代码来源:UserDetails.php

示例10: __construct

 public function __construct($db)
 {
     parent::__construct();
     $this->db = $db;
     $this->user = new DatabaseObject_User($db);
     $this->universities = DatabaseObject_StaticUtility::loadUniversities($db);
 }
开发者ID:vinnivinsachi,项目名称:Vincent-DR,代码行数:7,代码来源:UsermemberRegistration.php

示例11: __construct

 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;
         }
     }
 }
开发者ID:vinnivinsachi,项目名称:Vincent-DR,代码行数:27,代码来源:UpgradeAccount.php

示例12: __construct

 public function __construct($db, $userID)
 {
     parent::__construct();
     $this->db = $db;
     $this->inventoryProduct = new DatabaseObject_Inventory_Product($db);
     $this->userID = $userID;
 }
开发者ID:vinnivinsachi,项目名称:Vincent-DR,代码行数:7,代码来源:AddInventory.php

示例13: __construct

 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};
         }
     }
 }
开发者ID:vinnivinsachi,项目名称:Vincent-DR,代码行数:30,代码来源:UserProduct.php

示例14: __construct

 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();
 }
开发者ID:vinnivinsachi,项目名称:Vincent-DR,代码行数:8,代码来源:ImageAttribute.php

示例15: __construct

 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;
 }
开发者ID:vinnivinsachi,项目名称:Vincent-DR,代码行数:8,代码来源:CustomAttribute.php


注:本文中的FormProcessor::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。