本文整理汇总了PHP中Dashboard::render方法的典型用法代码示例。如果您正苦于以下问题:PHP Dashboard::render方法的具体用法?PHP Dashboard::render怎么用?PHP Dashboard::render使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Dashboard
的用法示例。
在下文中一共展示了Dashboard::render方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testRenderWithOneWidget
public function testRenderWithOneWidget()
{
$kernelMock = $this->mockFactory->getKernelMock();
$kernelMock->expects($this->any())->method('getConfig')->will($this->returnValue(array('widgets' => array(array('name' => 'test')), 'template' => 'test')));
$kernelMock->expects($this->once())->method('findFileOnPath')->will($this->returnValue(__DIR__ . '/../../templates/empty.phtml'));
$widgetMock = $this->getWidgetMock($kernelMock);
$widgetProviderMock = $this->getWidgetMockProvider($kernelMock);
$widgetProviderMock->injectMock($widgetMock);
$dashboard = new Dashboard($kernelMock, $widgetProviderMock);
$dashboard->render();
}
示例2: split
{
global $sessionkey;
$path = split('/', $_SERVER["SCRIPT_URL"]);
$sessionkey = $path[2];
$content = file_get_contents($filename);
return $content;
}
require_once 'HTTP/Request.php';
require_once 'lib/adodb/adodb.inc.php';
require_once 'lib/adodb/adodb-pear.inc.php';
require_once 'lib/db.php';
#require_once 'Dashboard_Class.php';
require_once 'Cookie.php';
require_once 'mobileicon.php';
require_once 'HTML/Safe.php';
global $sessionkey;
$host = $_SERVER['HTTP_HOST'];
define('DEVEL', $host == 'reblog-dev.ido.nu');
if (DEVEL && USE_CACHE) {
#$content = from_file('log/audio.html');
#$content = from_file('log/video_regular.html');
#$content = from_file('log/sample.html');
$content = from_file('log/raw.html');
} else {
$content = from_tumblr();
# savecontent("log/raw.html", $content);
}
$d = new Dashboard($content);
$d->parse();
$d->render();