本文整理汇总了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();