本文整理汇总了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']);
}
}
示例2: __construct
public function __construct($meta = 0, $count = 1)
{
parent::__construct(self::GOLD_PICKAXE, $meta, $count, "Gold Pickaxe");
}
示例3: __construct
public function __construct($meta = 0, $count = 1)
{
parent::__construct(self::IRON_HOE, $meta, $count, "Iron Hoe");
}
示例4: __construct
public function __construct($meta = 0, $count = 1)
{
parent::__construct(self::WOODEN_SWORD, $meta, $count, "Wooden Sword");
}
示例5: __construct
public function __construct($meta = 0, $count = 1)
{
parent::__construct(self::DIAMOND_SHOVEL, $meta, $count, "Diamond Shovel");
}
示例6: __construct
public function __construct($meta = 0, $count = 1)
{
parent::__construct(self::STONE_PICKAXE, $meta, $count, "Stone Pickaxe");
}
示例7: __construct
public function __construct($meta = 0, $count = 1)
{
parent::__construct(self::WOODEN_HOE, $meta, $count, "Wooden Hoe");
}
示例8: __construct
public function __construct($meta = 0, $count = 1)
{
parent::__construct(self::IRON_SWORD, $meta, $count, "Iron Sword");
}
示例9: __construct
public function __construct($meta = 0, $count = 1)
{
parent::__construct(self::GOLD_HOE, $meta, $count, "Gold Hoe");
}
示例10: __construct
public function __construct($meta = 0, $count = 1)
{
parent::__construct(self::WOODEN_PICKAXE, $meta, $count, "Wooden Pickaxe");
}
示例11: __construct
public function __construct($meta = 0, $count = 1)
{
parent::__construct(self::DIAMOND_PICKAXE, $meta, $count, "Diamond Pickaxe");
}
示例12: __construct
public function __construct($meta = 0, $count = 1)
{
parent::__construct(self::STONE_HOE, $meta, $count, "Stone Hoe");
}
示例13: __construct
public function __construct($meta = 0, $count = 1)
{
parent::__construct(self::SHEARS, $meta, $count, "Shears");
}
示例14: __construct
public function __construct($meta = 0, $count = 1)
{
parent::__construct(self::BOW, $meta, $count, "Bow");
}
示例15: __construct
public function __construct($meta = 0, $count = 1)
{
parent::__construct(self::DIAMOND_SWORD, $meta, $count, "Diamond Sword");
}