本文整理汇总了PHP中Redaxscript\Registry::set方法的典型用法代码示例。如果您正苦于以下问题:PHP Registry::set方法的具体用法?PHP Registry::set怎么用?PHP Registry::set使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Redaxscript\Registry
的用法示例。
在下文中一共展示了Registry::set方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: centerStart
/**
* centerStart
*
* @since 2.6.0
*/
public static function centerStart()
{
if (Request::getPost(get_class()) === 'submit') {
Registry::set('centerBreak', true);
self::_process();
}
}
示例2: renderStart
/**
* renderStart
*
* @since 3.0.0
*/
public static function renderStart()
{
if (Registry::get('firstParameter') === 'tinymce' && Registry::get('secondParameter') === 'upload' && Registry::get('lastParameter') === Registry::get('token')) {
Registry::set('renderBreak', true);
echo self::_upload();
}
}
示例3: renderStart
/**
* renderStart
*
* @since 2.2.0
*/
public static function renderStart()
{
if (Registry::get('firstParameter') === 'preview') {
Registry::set('title', l('preview', 'preview'));
Registry::set('centerBreak', 1);
}
}
示例4: renderStart
/**
* renderStart
*
* @since 2.2.0
*/
public static function renderStart()
{
if (Registry::get('firstParameter') === 'preview') {
Registry::set('title', Language::get('preview', '_preview'));
Registry::set('description', Language::get('description', '_preview'));
Registry::set('centerBreak', true);
}
}
示例5: renderStart
/**
* renderStart
*
* @since 2.2.0
*/
public static function renderStart()
{
if (Registry::get('firstParameter') === 'sitemap-xml') {
Registry::set('renderBreak', true);
header('content-type: application/xml');
echo self::render();
}
}
示例6: renderStart
/**
* renderStart
*
* @since 2.2.0
*/
public static function renderStart()
{
if (Registry::get('firstParameter') === 'manifest_webapp') {
Registry::set('renderBreak', true);
header('content-type: application/x-web-app-manifest+json');
include_once 'modules/WebApp/files/manifest.json';
}
}
示例7: renderStart
/**
* renderStart
*
* @since 2.2.0
*/
public static function renderStart()
{
if (Registry::get('articleId')) {
Registry::set('commentReplace', true);
/* script */
$script = Head\Script::getInstance();
$script->init('foot')->appendFile(self::$_configArray['url'])->appendFile('modules/Disqus/assets/scripts/init.js');
}
}
示例8: renderStart
/**
* renderStart
*
* @since 2.3.0
*/
public static function renderStart()
{
$firstParamter = Registry::get('firstParameter');
$secondParameter = Registry::get('secondParameter');
if ($firstParamter === 'feed' && ($secondParameter === 'articles' || $secondParameter === 'comments')) {
header('content-type: application/atom+xml');
echo self::render(SECOND_PARAMETER);
Registry::set('renderBreak', true);
}
}
示例9: renderStart
/**
* renderStart
*
* @since 2.2.0
*/
public static function renderStart()
{
if (Registry::get('firstParameter') === 'preview') {
Registry::set('metaTitle', Language::get('preview', '_preview'));
Registry::set('metaDescription', Language::get('description', '_preview'));
Registry::set('routerBreak', true);
/* link */
$link = Head\Link::getInstance();
$link->init()->appendFile('modules/Preview/dist/styles/preview.min.css');
}
}
示例10: renderStart
/**
* renderStart
*
* @since 2.4.0
*/
public static function renderStart()
{
if (Registry::get('firstParameter') === 'demo') {
/* handle login */
if (Registry::get('secondParameter') === 'login') {
Registry::set('title', Language::get('login'));
Registry::set('centerBreak', true);
}
/* handle reinstall */
if (Registry::get('secondParameter') === 'reinstall') {
self::_reinstall();
Registry::set('renderBreak', true);
}
}
}
示例11: renderStart
/**
* renderStart
*
* @since 2.2.0
*/
public static function renderStart()
{
if (Registry::get('article')) {
Registry::set('commentsReplace', true);
}
}