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


PHP BaseClass::__construct方法代碼示例

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


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

示例1: array

 function __construct($id = false)
 {
     $this->_table = "Tour";
     $this->_idfield = "tourID";
     $this->_LINKED = array(array('classname' => 'Guides', 'type' => 'one2one', 'classLinkField' => 'guideID', 'idField' => 'guideID'), array('classname' => 'Users', 'type' => 'many2many', 'linkTable' => 'TourUsers', 'classLinkField' => $this->_idfield, 'addFields' => 'tourUserType,tourUserDate,tourUserComments,tourUserCommentsUser,tourUserCommentsRegVia,tourUserCommentsPrepay,tourUserCommentsTicket,tourUserAddName1,tourUserAddValue1,tourUserAddName2,tourUserAddValue2,tourUserAddName3,tourUserAddValue3,tourUserAddName4,tourUserAddValue4,tourUserAddName5,tourUserAddValue5,tourUserAddEmail1,tourUserAddEmail2,tourUserRooming,tourUserRoomingComment,tourUserRoomingType,tourUserRoomingNo,tourUserModifyDate', 'idField' => 'userID', 'options' => array(array('field' => 'tourUserRoomingNo', 'eq' => 'ORDERBY', 'value' => 'tourUserRoomingNo'))));
     return parent::__construct($id);
 }
開發者ID:alex-k,項目名稱:velotur,代碼行數:7,代碼來源:Tours_class.php

示例2: array

 function __construct($id = false)
 {
     $this->_table = "Trip";
     $this->_idfield = "tripID";
     $this->_LINKED = array(array('classname' => 'Tours'));
     return parent::__construct($id);
 }
開發者ID:alex-k,項目名稱:velotur,代碼行數:7,代碼來源:Trips_class.php

示例3:

 function __construct($id = false)
 {
     $this->_table = "Invitations";
     $this->_idfield = "invitationID";
     $this->_datefield = "invitationDate";
     return parent::__construct($id);
 }
開發者ID:alex-k,項目名稱:velotur,代碼行數:7,代碼來源:Invitations_class.php

示例4: __construct

 public function __construct($key, $quantity, $price)
 {
     parent::__construct();
     $this->_key = $key;
     $this->_quantity = $quantity;
     $this->_price = $price;
     $this->_features = array();
 }
開發者ID:gotnospirit,項目名稱:php-dpat,代碼行數:8,代碼來源:CaddyItem.php

示例5: __construct

 /**
  * 
  */
 public function __construct($id, $name, $css_class, $checked = FALSE)
 {
     parent::__construct();
     $this->id = $id;
     $this->name = $name;
     $this->css_class = $css_class;
     $this->checked = $checked;
 }
開發者ID:alsimfer,項目名稱:HomePage,代碼行數:11,代碼來源:Checkbox.php

示例6: __construct

 /**
  * 
  */
 public function __construct($id, $name, $css_class, $script)
 {
     parent::__construct();
     $this->id = $id;
     $this->name = $name;
     $this->css_class = $css_class;
     $this->script = $script;
 }
開發者ID:alsimfer,項目名稱:HomePage,代碼行數:11,代碼來源:Table.php

示例7: array

 function __construct($id = false)
 {
     $this->_table = "User";
     $this->_idfield = "userID";
     $this->_datefield = "userRegistrationDate";
     $this->_LINKED = array(array('classname' => 'Tours', 'type' => 'many2many', 'linkTable' => 'TourUsers', 'classLinkField' => $this->_idfield, 'addFields' => 'tourUserType,tourUserDate,tourUserComments,tourUserCommentsUser,tourUserCommentsRegVia,tourUserCommentsPrepay,tourUserCommentsTicket,tourUserAddName1,tourUserAddValue1,tourUserAddName2,tourUserAddValue2,tourUserAddName3,tourUserAddValue3,tourUserAddName4,tourUserAddValue4,tourUserAddName5,tourUserAddValue5,tourUserAddEmail1,tourUserAddEmail2,tourUserRooming,tourUserRoomingComment,tourUserRoomingType,tourUserRoomingNo,tourUserModifyDate', 'idField' => 'tourID'), array('classname' => 'Users', 'type' => 'one2one', 'classLinkField' => $this->_idfield, 'idField' => 'userReferalID'));
     return parent::__construct($id);
 }
開發者ID:alex-k,項目名稱:velotur,代碼行數:8,代碼來源:Users_class.php

示例8: array

 function __construct($attributes = array(), $entities = array())
 {
     $this->entities = array();
     foreach ($entities as $entity) {
         $this->append($entity->copy());
     }
     parent::__construct($attributes);
 }
開發者ID:k3rn3l3rr0r,項目名稱:dxfwriter,代碼行數:8,代碼來源:Collection.php

示例9: array

 function __construct($id = false)
 {
     $this->_table = "Customers";
     $this->_idfield = "customerID";
     $this->_datefield = "customerCreationDate";
     $this->_LINKED = array(array('classname' => 'Invitations'));
     return parent::__construct($id);
 }
開發者ID:alex-k,項目名稱:velotur,代碼行數:8,代碼來源:Customers_class.php

示例10: __construct

 public function __construct($page_id)
 {
     parent::__construct();
     if ($page_id != NULL) {
         $page_id = (int) $page_id;
         util_Validator::validate($page_id, 'integer');
         $this->init($page_id);
     }
 }
開發者ID:alsimfer,項目名稱:HomePage,代碼行數:9,代碼來源:Page.php

示例11: array

 function __construct($attributes = array())
 {
     $defaults = array();
     $defaults['name'] = 'Writer';
     $defaults['flag'] = 64;
     $defaults['color'] = 7;
     $defaults['lineType'] = 'continuous';
     parent::__construct(array_merge($defaults, $attributes));
 }
開發者ID:k3rn3l3rr0r,項目名稱:dxfwriter,代碼行數:9,代碼來源:Layer.php

示例12: __construct

 public function __construct($shipment_id = 0)
 {
     parent::__construct();
     if ((int) $shipment_id > 0) {
         $shipment_id = (int) $shipment_id;
         util_Validator::validate($shipment_id, 'integer');
         $this->init($shipment_id);
     }
 }
開發者ID:alsimfer,項目名稱:HomePage,代碼行數:9,代碼來源:Shipment.php

示例13: array

 function __construct($id = false)
 {
     $this->_table = "Partners";
     $this->_idfield = "partnerID";
     $this->_LINKED = array();
     $this->_FIELDTYPES = array('partnerID' => 'hidden');
     $this->_CHECKFIELDS = array('partnerID' => 'required', 'partnerName' => 'required');
     $this->_FIELDNAMES = array('partnerID' => '#', 'partnerName' => 'Имя/название');
     return parent::__construct($id);
 }
開發者ID:alex-k,項目名稱:velotur,代碼行數:10,代碼來源:Partners_class.php

示例14: array

 function __construct($id = false)
 {
     $this->_table = "Guide";
     $this->_idfield = "guideID";
     $this->_LINKED = array(array('classname' => 'Tours', 'type' => 'many2one', 'classLinkField' => 'guideID', 'idField' => 'guideID'));
     $this->_FIELDTYPES = array('guideID' => 'hidden');
     $this->_CHECKFIELDS = array('guideID' => 'required', 'guideName' => 'required');
     $this->_FIELDNAMES = array('guideID' => '#', 'guideName' => 'Имя Гида', 'guidePhone' => 'Телефон', 'guideEmail1' => 'Email', 'guideEmail2' => 'Дополнительный email');
     return parent::__construct($id);
 }
開發者ID:alex-k,項目名稱:velotur,代碼行數:10,代碼來源:Guides_class.php

示例15: __construct

 /**
  * 
  */
 public function __construct($id, $name, $css_class, $selected_id = 0, $placeHolder = '')
 {
     parent::__construct();
     $this->id = $id;
     $this->name = $name;
     $this->css_class = $css_class;
     $this->placeHolder = $placeHolder;
     if ((int) $selected_id > 0) {
         $this->selected_id = $selected_id;
     }
 }
開發者ID:alsimfer,項目名稱:HomePage,代碼行數:14,代碼來源:SelectField.php


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