當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Profile::__construct方法代碼示例

本文整理匯總了PHP中Profile::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP Profile::__construct方法的具體用法?PHP Profile::__construct怎麽用?PHP Profile::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Profile的用法示例。


在下文中一共展示了Profile::__construct方法的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 public function __construct($db, $post_id = null)
 {
     parent::__construct($db, 'blog_posts_profile');
     if ($post_id > 0) {
         $this->setPostId($post_id);
     }
 }
開發者ID:kalroot,項目名稱:phpweb20demo,代碼行數:7,代碼來源:BlogPost.php

示例2: __construct

 public function __construct($db, $userID = null)
 {
     parent::__construct($db, 'users_profiles');
     if ($userID > 0) {
         $this->setUserId($userID);
     }
 }
開發者ID:vinnivinsachi,項目名稱:Vincent-DR,代碼行數:7,代碼來源:User.php

示例3: __construct

 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);
     }
 }
開發者ID:vinnivinsachi,項目名稱:Vincent-DR,代碼行數:8,代碼來源:UserProducts.php

示例4: __construct

 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);
     }
 }
開發者ID:vinnivinsachi,項目名稱:Vincent-DR,代碼行數:8,代碼來源:UniversalDue.php

示例5: __construct

 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);
     }
 }
開發者ID:vinnivinsachi,項目名稱:Vincent-DR,代碼行數:8,代碼來源:IndividualDue.php

示例6: __construct

 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);
     }
 }
開發者ID:vinnivinsachi,項目名稱:Vincent-DR,代碼行數:8,代碼來源:Promotion.php

示例7: __construct

 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);
     }
 }
開發者ID:vinnivinsachi,項目名稱:Vincent-DR,代碼行數:8,代碼來源:ReceiverMessage.php

示例8: __construct

 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);
     }
 }
開發者ID:vinnivinsachi,項目名稱:Vincent-DR,代碼行數:8,代碼來源:Event.php

示例9: __construct

 /**
  * 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);
 }
開發者ID:Welvin,項目名稱:stingle,代碼行數:14,代碼來源:UserProfile.class.php

示例10: __construct

 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
     }
 }
開發者ID:vinnivinsachi,項目名稱:Vincent-DR,代碼行數:12,代碼來源:CartAttribute.php

示例11: __construct

 public function __construct($profileId, Agent $agent)
 {
     parent::__construct($profileId);
     $this->agent = $agent;
 }
開發者ID:php-xapi,項目名稱:model,代碼行數:5,代碼來源:AgentProfile.php

示例12:

 function __construct($proxy = "192.168.1.23")
 {
     parent::__construct("certified-proxy");
     $this->proxy = $proxy;
 }
開發者ID:josuerodriguesbr,項目名稱:Gismeaux,代碼行數:5,代碼來源:profiles.php

示例13: __construct

 /**
  * @param string   $profileId
  * @param Activity $activity
  */
 public function __construct($profileId, Activity $activity)
 {
     parent::__construct($profileId);
     $this->activity = $activity;
 }
開發者ID:php-xapi,項目名稱:model,代碼行數:9,代碼來源:ActivityProfile.php


注:本文中的Profile::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。