本文整理汇总了PHP中Functions::getDefaultURL方法的典型用法代码示例。如果您正苦于以下问题:PHP Functions::getDefaultURL方法的具体用法?PHP Functions::getDefaultURL怎么用?PHP Functions::getDefaultURL使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Functions
的用法示例。
在下文中一共展示了Functions::getDefaultURL方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getReplaceChars
function getReplaceChars($object, $name = "")
{
switch ($name) {
case "products":
return array("%%ID%%" => $object->getId(), "%%NAME%%" => $object->getName(), "%%DESCRIPTION%%" => $object->getDescription(), "%%PICTURE%%" => $object->getPicture());
break;
case "gallery":
return array("%%ID%%" => $object->getId(), "%%NAME%%" => $object->getName(), "%%DESCRIPTION%%" => $object->getDescription(), "%%PICTURE%%" => $object->getFirstPicture(), "%%LIEN%%" => Functions::getDefaultURL() . "portfolio/" . $object->getId() . "_" . str_replace(" ", "_", $object->getName()));
break;
case "improve":
return array("%%ID%%" => $object->getId(), "%%NAME%%" => $object->getName(), "%%CONTENT%%" => $object->getContent(), "%%PICTURE%%" => $object->getPicture());
break;
case "improve1":
return array("%%ID%%" => $object->getId());
break;
case "slide":
return array("%%PICTURE%%" => $object->getPicture());
break;
case "category":
$product = Models::getProductObject();
$product->fetchProductByCategoryId($object->getId());
return array("%%ID%%" => $object->getId(), "%%NAME%%" => $object->getName(), "%%CATEGORY_URL%%" => Functions::getDefaultURL() . "product/" . str_replace(" ", "_", $object->getName()), "%%PICTURE%%" => $object->getPicture(), "%%LOGO%%" => $object->getLogo(), "%%DESCRIPTION%%" => $object->getDescription(), "%%COUNT%%" => $product->getCount(), "%%SELECTED%%" => defined("CATEGORY_NAME") && $object->getIdFromName(str_replace("_", " ", CATEGORY_NAME)) == $object->getId() ? "selected" : "");
break;
}
return array();
}
示例2: set
public function set($request = array())
{
$this->request = $request;
$this->html = Functions::getHTMLObject();
$this->html->setCommonArray(array("%%DEFAULT_TITLE%%" => "ARENALUB S.A.R.L", "%%HTTP_URL%%" => Functions::getDefaultURL(), "%%DESIGN_DIR%%" => Functions::getTemplateDir() . "design/", "%%PLUGINS_DIR%%" => Functions::getTemplateDir() . "plugins/", "%%CSS_DIR%%" => Functions::getTemplateDir() . "design/css/", "%%INDEX%%" => Functions::getDefaultURL() . $this->getLanguage() . "/"));
$this->html->setCommonArray(array("%%LANGUAGE_SELECT%%" => $this->html->getFilteredText(Functions::getPublicFile("language.html"))));
}
示例3: init
public function init(array $request = array())
{
$this::secure();
$request = $this::filter($request);
if ($this->verifyLanguage($request["REQUEST_URI"][0])) {
$this::setLanguage($request["REQUEST_URI"][0]);
$request["REQUEST_URI"] = array_slice($request["REQUEST_URI"], 1);
$this::dispatch((string) $request["REQUEST_URI"][0], $request);
} else {
header("location:" . Functions::getDefaultURL() . self::getInstalledLanguage() . "/" . str_replace(Config::$DEFAULT_SERVLET_NAME, "", implode("/", $request["REQUEST_URI"])));
}
}
示例4: getReplaceChars
function getReplaceChars($object, $name = "")
{
switch ($name) {
case "product":
$category = Models::getCategoryObject();
return array("%%TITLE%%" => $object->getName(), "%%DESCRIPTION%%" => $object->getDescription(), "%%CATEGORYID%%" => $object->getCategoryId(), "%%CATEGORY%%" => $category->getNameFromId($object->getCategoryId()), "%%PICTURE%%" => $object->getPicture());
break;
case "category":
$product = Models::getProductObject();
$product->fetchProductByCategoryId($object->getId());
return array("%%ID%%" => $object->getId(), "%%NAME%%" => $object->getName(), "%%CATEGORY_URL%%" => Functions::getDefaultURL() . "product/" . str_replace(" ", "_", $object->getName()), "%%PICTURE%%" => $object->getPicture(), "%%DESCRIPTION%%" => $object->getDescription(), "%%COUNT%%" => $product->getCount(), "%%SELECTED%%" => defined("CATEGORY_NAME") && $object->getIdFromName(str_replace("_", " ", CATEGORY_NAME)) == $object->getId() ? "selected" : "");
break;
}
return array();
}
示例5: getReplaceChars
function getReplaceChars($object, $name = "")
{
switch ($name) {
case "gallery":
$category = Models::getCategoryObject();
return array("%%ID%%" => $object->getId(), "%%TITLE%%" => $object->getName(), "%%DESCRIPTION%%" => nl2br($object->getDescription()), "%%PICTURE%%" => $object->getFirstPicture(), "%%CATEGORYID%%" => $object->getCategoryId(), "%%CATEGORY%%" => $category->getNameFromId($object->getCategoryId()), "%%LIEN%%" => Functions::getDefaultURL() . "portfolio/" . $object->getId() . "_" . str_replace(" ", "_", $object->getName()));
break;
case "gallerydetail":
return array("%%ID%%" => $object->getId(), "%%TITLE%%" => $object->getName(), "%%DESCRIPTION%%" => $object->getDescription(), "%%CATEGORY%%" => $object->getCategoryId());
break;
case "gallerypictures":
return array("%%PICTURE%%" => $object->getPicture());
break;
case "category":
return array("%%ID%%" => $object->getId(), "%%NAME%%" => $object->getName());
break;
}
return array();
}
示例6: init
private function init()
{
$this->commonArray = array("%%INDEX%%" => Functions::getDefaultURL());
}
示例7: getAdminDir
public static function getAdminDir()
{
return Functions::getDefaultURL() . Functions::getTemplateDir();
}
示例8:
echo $this::getAdminURL();
?>
administrator" class="dropdown-toggle" data-toggle="" data-target="#">
<span class="count patientcount"><?php
$object = Models::getAdminObject();
echo $object->getCount();
?>
</span>
<span class="head-icon head-users"></span>
<span class="headmenu-label">Administrateur</span>
</a>
</li>
<li class="right">
<div class="userloggedinfo">
<img src="<?php
echo Functions::getDefaultURL();
?>
/upload/panel/images/admin-m.png" alt="" />
<div class="userinfo">
<h5 class="adminname"><?php
$admin = Models::getAdminObject();
echo $admin->getNameFromId($admin->getConnectedId());
?>
</h5>
<ul>
<li><a href="<?php
echo $this::getAdminURL();
?>
administrator">Profile</a></li>
<li><a href="<?php
echo $this::getAdminURL();