本文整理匯總了PHP中url::getParam方法的典型用法代碼示例。如果您正苦於以下問題:PHP url::getParam方法的具體用法?PHP url::getParam怎麽用?PHP url::getParam使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類url
的用法示例。
在下文中一共展示了url::getParam方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: url
<?php
require_once '../class/url.class.php';
require_once '../class/record.class.php';
require_once '../thinkedit.init.php';
$url = new url();
$url->setParam('id', 7);
$url->setParam('action', 'move');
$url->setParam('locale', 'en');
$url->unSetParam('id');
echo '<pre>';
echo $url->render();
// try it with ./url.test.php?test_class=record&test_type=article&test_id=5
// and with url.test.php?test_class=record&test_type=article
echo $url->getParam('test');
$record = new record('article');
$record->set('id', 5);
$url->addObject($record, 'my_');
echo '<hr>';
echo $url->render();
$object = $url->getObject('test_');
$object->load();
echo '<hr>';
print_r($object);
示例2: url
<?php
require_once '../init.inc.php';
require_once '../class/browser.class.php';
require_once '../class/url.class.php';
require_once '../class/node.class.php';
$url = new url();
if ($url->getParam('id')) {
$id = $url->getParam('id');
} else {
$id = 1;
}
// $node = new node($id);
$node = new node($id);
$browser = new browser($node);
// because we are in a test folder todo : fix path handling, find a VERY GOOD solution
$browser->setDecorationPath('../decoration/');
echo $browser->render();
示例3: browser
<?php
require_once 'init.inc.php';
require_once 'class/module.class.php';
require_once 'class/browser.class.php';
require_once 'class/page.class.php';
require_once 'class/url.class.php';
$browser = new browser();
$page = new page();
$url = new url();
if ($url->getParam('node')) {
$node = $url->getParam('node');
} else {
$node = 1;
}
$module = new module($node);
$page->startPanel('test');
$page->add($module->view());
$page->endPanel('test');
$page->startPanel('title');
$page->add('<h1>Welcome to Thinkedit 3.0</h1>');
$page->endPanel('title');
$page->addSeparator();
$page->startPanel('help');
$page->add('Navigate using icons bellow, use "up" to go up in the hierarchy');
$page->endPanel('help');
$page->addSeparator();
$page->startPanel('breadcrumb');
$parent = $module->getParent();
if ($parent) {
$parent_link = new url();