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


PHP Tool::__construct方法代碼示例

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


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

示例1: __construct

 public function __construct($options)
 {
     parent::__construct($options);
     // 加載黑名單文件
     if (!empty($this->options['black_list'])) {
         C('BLACK_LIST', $this->options['black_list']);
     }
     if (!empty($this->options['cdn_list'])) {
         C('CDN_LIST', $this->options['cdn_list']);
     }
 }
開發者ID:chenyongze,項目名稱:m3d,代碼行數:11,代碼來源:PreprocessTool.class.php

示例2: __construct

 public function __construct($meta = 0, $count = 1)
 {
     parent::__construct(self::GOLD_PICKAXE, $meta, $count, "Gold Pickaxe");
 }
開發者ID:boybook,項目名稱:PocketMine-MP,代碼行數:4,代碼來源:GoldPickaxe.php

示例3: __construct

 public function __construct($meta = 0, $count = 1)
 {
     parent::__construct(self::IRON_HOE, $meta, $count, "Iron Hoe");
 }
開發者ID:MunkySkunk,項目名稱:BukkitPE,代碼行數:4,代碼來源:IronHoe.php

示例4: __construct

 public function __construct($meta = 0, $count = 1)
 {
     parent::__construct(self::WOODEN_SWORD, $meta, $count, "Wooden Sword");
 }
開發者ID:mattiasaxelsson,項目名稱:PocketMine-MP,代碼行數:4,代碼來源:WoodenSword.php

示例5: __construct

 public function __construct($meta = 0, $count = 1)
 {
     parent::__construct(self::DIAMOND_SHOVEL, $meta, $count, "Diamond Shovel");
 }
開發者ID:TexusDark,項目名稱:Ananas-MP,代碼行數:4,代碼來源:DiamondShovel.php

示例6: __construct

 public function __construct($meta = 0, $count = 1)
 {
     parent::__construct(self::STONE_PICKAXE, $meta, $count, "Stone Pickaxe");
 }
開發者ID:rryy,項目名稱:PocketMine-MP,代碼行數:4,代碼來源:StonePickaxe.php

示例7: __construct

 public function __construct($meta = 0, $count = 1)
 {
     parent::__construct(self::WOODEN_HOE, $meta, $count, "Wooden Hoe");
 }
開發者ID:worlds1,項目名稱:NIGHTMARE,代碼行數:4,代碼來源:WoodenHoe.php

示例8: __construct

 public function __construct($meta = 0, $count = 1)
 {
     parent::__construct(self::IRON_SWORD, $meta, $count, "Iron Sword");
 }
開發者ID:mattiasaxelsson,項目名稱:PocketMine-MP,代碼行數:4,代碼來源:IronSword.php

示例9: __construct

 public function __construct($meta = 0, $count = 1)
 {
     parent::__construct(self::GOLD_HOE, $meta, $count, "Gold Hoe");
 }
開發者ID:MunkySkunk,項目名稱:BukkitPE,代碼行數:4,代碼來源:GoldHoe.php

示例10: __construct

 public function __construct($meta = 0, $count = 1)
 {
     parent::__construct(self::WOODEN_PICKAXE, $meta, $count, "Wooden Pickaxe");
 }
開發者ID:worlds1,項目名稱:NIGHTMARE,代碼行數:4,代碼來源:WoodenPickaxe.php

示例11: __construct

 public function __construct($meta = 0, $count = 1)
 {
     parent::__construct(self::DIAMOND_PICKAXE, $meta, $count, "Diamond Pickaxe");
 }
開發者ID:TexusDark,項目名稱:Ananas-MP,代碼行數:4,代碼來源:DiamondPickaxe.php

示例12: __construct

 public function __construct($meta = 0, $count = 1)
 {
     parent::__construct(self::STONE_HOE, $meta, $count, "Stone Hoe");
 }
開發者ID:maa123,項目名稱:NIGHTMARE,代碼行數:4,代碼來源:StoneHoe.php

示例13: __construct

 public function __construct($meta = 0, $count = 1)
 {
     parent::__construct(self::SHEARS, $meta, $count, "Shears");
 }
開發者ID:mattiasaxelsson,項目名稱:PocketMine-MP,代碼行數:4,代碼來源:Shears.php

示例14: __construct

 public function __construct($meta = 0, $count = 1)
 {
     parent::__construct(self::BOW, $meta, $count, "Bow");
 }
開發者ID:mattiasaxelsson,項目名稱:PocketMine-MP,代碼行數:4,代碼來源:Bow.php

示例15: __construct

 public function __construct($meta = 0, $count = 1)
 {
     parent::__construct(self::DIAMOND_SWORD, $meta, $count, "Diamond Sword");
 }
開發者ID:Cecil107,項目名稱:PocketMine-0.13.0,代碼行數:4,代碼來源:DiamondSword.php


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