本文整理汇总了PHP中C::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP C::__construct方法的具体用法?PHP C::__construct怎么用?PHP C::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类C
的用法示例。
在下文中一共展示了C::__construct方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
function __construct()
{
C::__construct();
$this->p = 11;
$this->q = 22;
$this->r = 33;
}
示例2: __construct
/**
* 构造函数
*
* @access public
* @return void
*/
public function __construct()
{
parent::__construct();
$this->_attach_dir = config_item('site_attach_dir') . DIRECTORY_SEPARATOR;
if (@is_dir($this->_attach_dir) === false) {
create_dir($this->_attach_dir);
}
$watermark = $this->input->post('watermark', true);
if ($watermark !== false) {
$this->_watermark = false;
}
$temp = $this->input->post('temp', true);
if ($temp !== false) {
$this->_temp = true;
}
}
示例3: test
function test()
{
C::__construct();
$X = "C";
$m = "__construct";
C::$m();
$X::$m();
F::__construct();
I::__construct();
$X = "F";
$m = "__construct";
F::$m();
$X::$m();
$X = "I";
$m = "__construct";
I::$m();
$X::$m();
}
示例4: K
print "In J::J()\n";
}
}
class K extends H
{
function K()
{
print "In K::K()\n";
}
function __construct()
{
print "In K::__construct()\n";
}
}
$c = new C();
$c->__construct();
$c->sMeth();
$c = new D();
$c->D();
$c = new E();
$c->E();
$c->__construct();
$c = new F();
$c->__construct();
$c = new G();
$c->D();
$c = new H();
$c->E();
$c->__construct();
$c = new I();
$c->__construct();
示例5: __construct
public function __construct()
{
parent::__construct();
}
示例6: K
{
print "In J::J()\n";
}
}
class K extends H
{
function K()
{
print "In K::K()\n";
}
function __construct()
{
print "In K::__construct()\n";
}
}
C::__construct();
D::D();
E::E();
E::__construct();
F::__construct();
G::D();
H::E();
H::__construct();
I::__construct();
J::D();
J::J();
K::E();
K::K();
K::__construct();
$X = "C";
$m = "__construct";
示例7: __construct
public function __construct()
{
echo "In D::__construct\n";
C::__construct();
}
示例8: __construct
public function __construct()
{
parent::__construct();
var_dump(static::$cls);
}
示例9: __construct
public function __construct()
{
parent::__construct();
unset($this->property9);
}