当前位置: 首页>>代码示例>>PHP>>正文


PHP _root::getLink方法代码示例

本文整理汇总了PHP中_root::getLink方法的典型用法代码示例。如果您正苦于以下问题:PHP _root::getLink方法的具体用法?PHP _root::getLink怎么用?PHP _root::getLink使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在_root的用法示例。


在下文中一共展示了_root::getLink方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: _getLink

 public static function _getLink($sRootModule, $tRootParams, $sModuleName, $sAction, $tParam = null)
 {
     $sPrefix = $sModuleName;
     $tNewParam = array();
     if ($tRootParams) {
         $tNewParam = $tRootParams;
     }
     $tNewParam[$sPrefix . 'Action'] = $sAction;
     if ($tParam) {
         foreach ($tParam as $sKey => $sVal) {
             $tNewParam[$sPrefix . $sKey] = $sVal;
         }
     }
     return _root::getLink($sRootModule, $tNewParam);
 }
开发者ID:clavat,项目名称:mkframework,代码行数:15,代码来源:abstract_moduleembedded.php

示例2:

<!DOCTYPE html>
<html lang="fr">
<head>
<title>chart</title>
<link rel="stylesheet" type="text/css" href="css/main.css" media="screen" />
<script src="js/main.js" type="text/javascript"></script>
<link rel="alternate" type="application/rss+xml" title="RSS" href="<?php 
echo _root::getLink('article::newsrss');
?>
"/>
<meta charset="utf-8">
</head>
<body>

<div class="main">
	<div class="menu"><?php 
echo $this->load('menu');
?>
</div>
	<div class="content">
		<?php 
echo $this->load('main');
?>
	</div>
</div>

</body>
</html>
开发者ID:clavat,项目名称:mkframework,代码行数:28,代码来源:html5.php

示例3: array

>
								<span><?php 
        echo $sProjet;
        ?>
</span>

								<a href="<?php 
        echo _root::getLink('builder::edit', array('id' => $sProjet));
        ?>
#createon"><?php 
        echo tr('menuNavProject_link_edit');
        ?>
</a>
								
								<a href="<?php 
        echo _root::getLink('code::index', array('project' => $sProjet));
        ?>
"><?php 
        echo tr('menuNavProject_link_explore');
        ?>
</a>
								
								
								<a target="_blank" href="<?php 
        echo _root::getConfigVar('path.generation');
        echo $sProjet;
        ?>
"><?php 
        echo tr('menuNavProject_link_gotoSite');
        ?>
</a>					
开发者ID:clavat,项目名称:mkframework,代码行数:31,代码来源:list.php

示例4: foreach

    if ($this->tMethod) {
    }
    foreach ($this->tMethod as $sMethod) {
        ?>
	<?php 
        if (_root::getParam('method') == $sMethod) {
            ?>
		<li class="selectionne"><?php 
            echo $sMethod;
            ?>
</li>
	<?php 
        } else {
            ?>
		<li><a href="<?php 
            echo _root::getLink(_root::getRequest()->getParamNav(), array('id' => _root::getParam('id'), 'action' => _root::getParam('action'), 'model' => _root::getParam('model'), 'method' => $sMethod));
            ?>
#editcrud"><?php 
            echo $sMethod;
            ?>
</a></li>
	<?php 
        }
    }
    ?>
</ul>
</div>
<?php 
}
?>
开发者ID:clavat,项目名称:mkMarket,代码行数:30,代码来源:index.php

示例5: getInstallLink

 public static function getInstallLink($sId, $sVersion)
 {
     return _root::getLink('builder::marketBuilder', array('action' => 'installExtBuilder', 'id' => $sId, 'version' => $sVersion));
 }
开发者ID:clavat,项目名称:mkframework,代码行数:4,代码来源:main.php

示例6: array

<?php

$src = null;
if (_root::getParam('file') != '') {
    $src = _root::getLink('code::editcode', array('project' => _root::getParam('project'), 'file' => 'data/genere/' . _root::getParam('project') . '/' . _root::getParam('file')));
}
?>
<div id="title"></div>
<iframe name="codeFrame" id="codeFrame" style="width:840px;height:600px;border:0px" src="<?php 
echo $src;
?>
"></iframe>
开发者ID:clavat,项目名称:mkframework,代码行数:12,代码来源:index.php

示例7: process

    private function process()
    {
        if (_root::getRequest()->isPost() == false or _root::getParam('formu') != 'generate') {
            return null;
        }
        $oPluginValid = new plugin_valid(_root::getRequest()->getParams());
        $oPluginValid->isNotEmpty('modulename', 'Le champ doit &ecirc;tre rempli');
        $oPluginValid->isNotEmpty('classmodel', 'Le champ doit &ecirc;tre rempli');
        $oPluginValid->isNotEmpty('redirect', 'Le champ doit &ecirc;tre rempli');
        if (!$oPluginValid->isValid()) {
            return $oPluginValid->getListError();
        }
        $sModuleName = _root::getParam('modulename');
        $sClassModuleName = 'module_' . $sModuleName;
        $sRedirectModuleAction = _root::getParam('redirect');
        $sModelName = _root::getParam('classmodel');
        $sViewName = $sModuleName . '::login';
        $sViewInscriptionName = $sModuleName . '::inscription';
        $sRowName = preg_replace('/model_/', 'row_', $sModelName);
        $sLoginField = _root::getParam('loginField');
        $sPassField = _root::getParam('passField');
        $oExample = 'o' . ucfirst(preg_replace('/model_/', '', $sModelName));
        $this->projectMkdir('module/' . $sModuleName);
        /*SOURCE*/
        $oSourceMain = $this->getObjectSource('example/main.php');
        /*SOURCE*/
        $oSourceMain->setPattern('#MODULE#', $sModuleName);
        /*SOURCE*/
        $oSourceMain->setPattern('#privatemodule_action#', $sRedirectModuleAction);
        /*SOURCE*/
        $oSourceMain->setPattern('#model_example#', $sModelName);
        /*SOURCE*/
        $oSourceMain->setPattern('#row_example#', $sRowName);
        /*SOURCE*/
        $oSourceMain->setPattern('#oExample#', $oExample);
        /*SOURCE*/
        $oSourceMain->setPattern('#auth_login#', $sViewName);
        /*SOURCE*/
        $oSourceMain->setPattern('#auth_inscription#', $sViewInscriptionName);
        /*SOURCE*/
        $oSourceMain->setPattern('#loginField#', $sLoginField);
        /*SOURCE*/
        $oSourceMain->setPattern('#passField#', $sPassField);
        /*SOURCE*/
        $oSourceMain->save();
        $this->projectMkdir('module/' . $sModuleName . '/view');
        /*SOURCE*/
        $oSourceViewLogin = $this->getObjectSource('example/view/login.php');
        /*SOURCE*/
        $oSourceViewLogin->setPattern('#MODULE#', $sModuleName);
        /*SOURCE*/
        $oSourceViewLogin->save();
        /*SOURCE*/
        $oSourceViewLogin = $this->getObjectSource('example/view/inscription.php');
        /*SOURCE*/
        $oSourceViewLogin->setPattern('#MODULE#', $sModuleName);
        /*SOURCE*/
        $oSourceViewLogin->setPattern('#loginField#', $sLoginField);
        /*SOURCE*/
        $oSourceViewLogin->save();
        $sModuleName = _root::getParam('modulename');
        $this->msg = 'Cr&eacute;ation du module ' . $sModuleName;
        $this->detail = trR('creationRepertoire', array('#REPERTOIRE#' => 'module/' . $sModuleName));
        $this->detail .= '<br/>' . trR('CreationDuFichierVAR', array('#FICHIER#' => 'module/' . $sModuleName . '/main.php'));
        $this->detail .= '<br/>' . trR('creationRepertoire', array('#REPERTOIRE#' => 'module/' . $sModuleName));
        $this->detail .= '<br/>' . trR('CreationDuFichierVAR', array('#FICHIER#' => 'module/' . $sModuleName . '/view/login.php'));
        $this->detail .= '<br/>' . trR('CreationDuFichierVAR', array('#FICHIER#' => 'module/' . $sModuleName . '/view/inscription.php'));
        $this->detail .= '<br/>';
        $this->detail .= '<br/>' . trR('editezVotreFichier', array('#link#' => '<a target="_blank" href="' . _root::getLink('code::index', array('project' => _root::getParam('id'), 'file' => 'conf/site.ini.php')) . '">conf/site.ini.php</a>'));
        $this->detail .= '<br/>
		<div style="padding:8px;border:2px dotted gray">
		[auth]<br/>
		enabled=1<br/>
		' . tr('et') . '<br/>
		module=' . $sModuleName . '::login
		</div>
		';
    }
开发者ID:clavat,项目名称:mkMarket,代码行数:78,代码来源:main.php

示例8: tr

?>
</a>
								
								
								<a style="margin-left:30px;color:white;" class="buttons" target="_blank" href="<?php 
echo _root::getConfigVar('path.generation');
echo _root::getParam('id');
?>
"><?php 
echo tr('menuNavProject_link_gotoSite');
?>
</a>


								<a style="margin-left:30px;color:white;" class="buttons" href="<?php 
echo _root::getLink('builder::export', array('id' => _root::getParam('id')));
?>
"><?php 
echo tr('menuNavProject_link_export');
?>
</a>
									</h1>
<ul>
<?php 
foreach ($this->tLink as $sLibelle => $sLink) {
    ?>

	<?php 
    if ($sLink == 'title') {
        ?>
		<h2 style="background:white"><?php 
开发者ID:clavat,项目名称:mkMarket,代码行数:31,代码来源:project.php

示例9: getInstallLinkPlugin

 public static function getInstallLinkPlugin($sId, $sVersion)
 {
     return _root::getLink('builder::edit', array('id' => _root::getParam('id'), 'action' => 'mods_all_market::index', 'saction' => 'installExtPlugin', 'sid' => $sId, 'version' => $sVersion));
 }
开发者ID:clavat,项目名称:mkframework,代码行数:4,代码来源:main.php

示例10:

                ?>
				<?php 
            } else {
                ?>
					<td></td>
				<?php 
            }
            ?>
			<?php 
        } else {
            ?>
				<?php 
            if ($jour <= $dernierJour) {
                ?>
					<td><a href="<?php 
                echo _root::getLink($sModuleAction, $tParamTmp);
                ?>
"><?php 
                echo $jour;
                ?>
</a></td>
					<?php 
                $jour += 1;
                ?>
				<?php 
            } else {
                ?>
					<td></td>
				<?php 
            }
            ?>
开发者ID:clavat,项目名称:mkframework,代码行数:31,代码来源:list.php

示例11: array

Fichier inexistant :(

<p>
<a href="<?php 
echo _root::getLink('code::createfile', array('project' => _root::getParam('project'), 'file' => _root::getParam('file'), 'type' => _root::getParam('type')));
?>
">Cr&eacute;er le fichier ?</a></p>
开发者ID:clavat,项目名称:mkframework,代码行数:7,代码来源:nocode.php

示例12: array

<p style="margin:0px;margin-bottom:10px"><a style="display:block;border:1px dotted gray;text-decoration:none;background:#ddd;text-align:center" href="<?php 
echo _root::getLink('builder::edit', array('id' => _root::getParam('project')));
?>
"><?php 
echo tr('retour');
?>
</a></p>
<?php 
foreach ($this->tFileDir as $sDir => $tContent) {
    ?>
	<p class="dir" id="linkarbo<?php 
    echo $sDir;
    ?>
"><a href="#" onclick="openclose('arbo<?php 
    echo $sDir;
    ?>
');return false;"><?php 
    echo $sDir;
    ?>
</a>
		<?php 
    if ($sDir == 'module') {
        ?>
			<a style="margin-left:10px;color:darkgreen" href="#" onclick="openCrossPopup('addModule');return false">[ <?php 
        echo tr('explorerAjouterUnModule');
        ?>
 ]</a>
		<?php 
    } elseif ($sDir == 'model') {
        ?>
			<a style="margin-left:10px;color:darkgreen" href="#" onclick="openCrossPopup('genModel');return false">[ <?php 
开发者ID:clavat,项目名称:mkframework,代码行数:31,代码来源:codearbo.php

示例13: _index

    public function _index()
    {
        $tMessage = $this->generate();
        module_builder::getTools()->rootAddConf('conf/connexion.ini.php');
        $msg = null;
        $detail = null;
        if (isset($tMessage['success']) and $tMessage['success'] == 1) {
            $sModuleName = _root::getParam('modulename');
            $msg = 'Cr&eacute;ation du module ' . $sModuleName;
            $detail = '
			Cr&eacute;ation du repertoire module/' . $sModuleName . '<br/>
			Cr&eacute;ation du fichier module/' . $sModuleName . '/main.php<br/>
			Cr&eacute;ation du repertoire module/' . $sModuleName . '/view<br/>
			Cr&eacute;ation du fichier module/' . $sModuleName . '/view/login.php<br/>
			<br/>
			Editez votre fichier <a target="_blank" href="' . _root::getLink('code::index', array('project' => _root::getParam('id'), 'file' => 'conf/site.ini.php')) . '">conf/site.ini.php</a> et indiquez <br/>
			<div style="padding:8px;border:2px dotted gray">
			[auth]<br/>
			enabled=1<br/>
			et<br/>
			module=' . $sModuleName . '::login
			</div>
			';
        }
        $oDir = new _dir(_root::getConfigVar('path.generation') . _root::getParam('id') . '/model/');
        $tFile = array();
        $tRowMethodes = array();
        foreach ($oDir->getListFile() as $oFile) {
            if (preg_match('/.sample.php/', $oFile->getName()) or !preg_match('/.php$/', $oFile->getName())) {
                continue;
            }
            $tFile[] = $oFile->getName();
            require_once $oFile->getAdresse();
            $sClassFoo = substr($oFile->getName(), 0, -4);
            $oModelFoo = new $sClassFoo();
            if (method_exists($oModelFoo, 'getListAccount') and method_exists($oModelFoo, 'hashPassword')) {
                $tRowMethodes[substr($oFile->getName(), 0, -4)] = substr($oFile->getName(), 0, -4) . '::getInstance()->getListAccount() et hashPassword()';
            }
        }
        $tModule = module_builder::getTools()->getListModule();
        $tModuleAndMethod = array();
        foreach ($tModule as $oModule) {
            $sModuleName = $oModule->getName();
            if (in_array($sModuleName, array('menu', 'builder', 'example', 'exampleembedded'))) {
                continue;
            }
            include module_builder::getTools()->getRootWebsite() . 'module/' . $sModuleName . '/main.php';
            if (get_parent_class('module_' . $sModuleName) != 'abstract_module') {
                continue;
            }
            $tMethods = get_class_methods('module_' . $sModuleName);
            foreach ($tMethods as $i => $sMethod) {
                if ($sMethod[0] != '_' or substr($sMethod, 0, 2) == '__') {
                    unset($tMethods[$i]);
                }
            }
            if (empty($tMethods)) {
                continue;
            }
            $tModuleAndMethod[$sModuleName] = $tMethods;
        }
        $tColumnAccount = null;
        $sClassAccount = _root::getParam('model');
        if ($sClassAccount) {
            $sClassAccount = substr($sClassAccount, 0, -4);
            $tColumnAccount = module_builder::getTools()->getListColumnFromClass($sClassAccount);
        }
        $oTpl = new _Tpl('moduleAuth::index');
        $oTpl->tRowMethodes = $tRowMethodes;
        $oTpl->tModuleAndMethod = $tModuleAndMethod;
        $oTpl->tMessage = $tMessage;
        $oTpl->msg = $msg;
        $oTpl->detail = $detail;
        $oTpl->tFile = $tFile;
        $oTpl->tColumnAccount = $tColumnAccount;
        return $oTpl;
    }
开发者ID:CariteColas,项目名称:projetTKB,代码行数:77,代码来源:main.php

示例14: sprintf

	<?php 
    if (!$this->tRowMethodes and (_root::getParam('model') and _root::getParam('loginField') and _root::getParam('passField'))) {
        ?>
		<table>
			<tr>
				<td colspan="2" style="padding:10px">
				<h2 style="border:2px solid red;padding:4px"><?php 
        echo sprintf(tr('Builder::edit_authmodule_ilVousFautModifierLaClasse'), _root::getParam('model'));
        ?>
</h2>
					
				<strong><?php 
        echo tr('Builder::edit_authmodule_ilVousFautAjouterCesMethodes');
        ?>
 "<a target="_blank" href="<?php 
        echo _root::getLink('code::index', array('project' => _root::getParam('id'), 'file' => 'model/' . _root::getParam('model')));
        ?>
"><?php 
        echo substr(_root::getParam('model'), 0, -4);
        ?>
"</a> <?php 
        echo tr('Builder::edit_authmodule_deVosComptesDeConnexion');
        ?>
</strong><br/>
				<?php 
        echo tr('Builder::edit_authmodule_uneMethode');
        ?>
 "getListAccount()"<br />
				<i><?php 
        echo tr('Builder::edit_authmodule_quiRetourneraUntableauIndexe');
        ?>
开发者ID:CariteColas,项目名称:projetTKB,代码行数:31,代码来源:index.php

示例15: getLink

 /** 
  * retourne un lien framework
  * @access public
  * @return string
  */
 public function getLink($sLink, $tParam = null, $bAmp = true)
 {
     return _root::getLink($sLink, $tParam, $bAmp);
 }
开发者ID:clavat,项目名称:mkframework,代码行数:9,代码来源:class_view.php


注:本文中的_root::getLink方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。