本文整理汇总了PHP中B::a方法的典型用法代码示例。如果您正苦于以下问题:PHP B::a方法的具体用法?PHP B::a怎么用?PHP B::a使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类B
的用法示例。
在下文中一共展示了B::a方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct()
{
if (null === self::$a) {
if (!$foo) {
self::$a = false;
} else {
self::$a = new A();
}
}
}
示例2:
<?php
B::$a = C::D(include E . 'F', include G . 'H' . $b . 'I');
示例3: array
<?php
echo B::nav(array('text' => B::ul(array('items' => array(B::a(array('text' => 'Dashboard', 'href' => URL)), B::a(array('text' => 'Projects', 'href' => SITE_URL . 'projects')))))));
示例4: a
}
}
interface I
{
public function a(int $a1 = 0);
public function b(array $b1 = null);
}
class B implements I
{
public function a(int $a1 = null, int $z1 = 1, int $z2 = D2, int $z3 = 3, int $z4 = null)
{
}
public function b(array $b1 = null, array $y = array(), int $z1 = 1, int $z2 = 2, double $z3 = 3.0, string $z4 = "abc")
{
}
}
$a = new A();
$a->a();
$a->b();
$a->d();
$a->f();
$a->i();
$a->s();
$a->c();
$a->c($a);
$a->c(null);
$a->z();
$b = new B();
$b->a();
$b->b();
print "Pass\n";
示例5: a
<?php
class A
{
public function a()
{
print __METHOD__ . "\n";
}
}
class B extends A
{
public function a()
{
parent::a();
print __METHOD__ . "\n";
}
public function AUC()
{
PARENT::a();
print __METHOD__ . "\n";
}
public function AUS()
{
Self::a();
}
}
$x = new B();
$x->a();
$x->AUC();
示例6: redirect
function redirect($uri = '', $http_response_code = 302) {
if(substr($uri, 0, 7) != 'http://') {
//@todo fix this so it works with https
/*
$this->callRoute($uri);
exit;
*/
if($uri == '/') {
$uri = SITE_URL;
} else {
$uri = SITE_URL . $uri;
}
}
//@todo make this be set off with the debug switch. and if debugging is on it should show a link to the page it would have forwarded to.
if(headers_sent()) {
D::show('Headers already sent.', B::a(array('href' => $uri), $uri));
} else {
header('Location: ' . $uri, TRUE, $http_response_code);
/* @todo you should call an app end event here.*/
SweetFramework::end(true);
}
}