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


PHP eZDebug::writeStrict方法代码示例

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


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

示例1: removeByAddress

 /**
  * @deprecated Since 5.0, please use removeByUserID()
  * @param string $address
  */
 static function removeByAddress($address)
 {
     eZDebug::writeStrict('Method ' . __METHOD__ . ' has been deprecated in 5.0', 'Deprecation');
     $user = eZUser::fetchByEmail($address);
     if ($user instanceof eZUser) {
         self::removeByUserID($user->attribute('contentobject_id'));
     }
 }
开发者ID:mugoweb,项目名称:ezpublish-legacy,代码行数:12,代码来源:ezgeneraldigestusersettings.php

示例2: eZCheckUser

/**
 * Check if user login is required. If so, use login handler to redirect user.
 *
 * @deprecated As of 4.4, moved to {@link eZUserLoginHandler::preCheck()}
 * @param array $siteBasics
 * @param eZURI $uri
 * @return array|true|false|null An associative array on redirect with 'module' and 'function' keys, true on successful
 *                               and false/null on #fail.
 */
function eZCheckUser(array &$siteBasics, eZURI $uri)
{
    eZDebug::writeStrict('Function eZCheckUser() has been deprecated in 4.4 in favor of eZUserLoginHandler::preCheck()', 'Deprecation');
    if (!$siteBasics['user-object-required']) {
        return null;
    }
    $ini = eZINI::instance();
    $requireUserLogin = $ini->variable('SiteAccessSettings', 'RequireUserLogin') == 'true';
    $forceLogin = false;
    if (eZSession::hasStarted()) {
        $http = eZHTTPTool::instance();
        $forceLogin = $http->hasSessionVariable(eZUserLoginHandler::FORCE_LOGIN);
    }
    if (!$requireUserLogin && !$forceLogin) {
        return null;
    }
    return eZUserLoginHandler::checkUser($siteBasics, $uri);
}
开发者ID:EVE-Corp-Center,项目名称:ECC-Website,代码行数:27,代码来源:pre_check.php

示例3: isLoggedIn

 /**
  * Returns true if the user is a registered and not anonymous user.
  *
  * @deprecated since 5.1 Use isRegistered() / isUserLoggedIn() instead.
  */
 public function isLoggedIn()
 {
     eZDebug::writeStrict("Method " . __METHOD__ . " has been deprecated in 5.1. Use isRegistered() / isUserLoggedIn() instead.", "Deprecation");
     return $this->isRegistered();
 }
开发者ID:brookinsconsulting,项目名称:ezecosystem,代码行数:10,代码来源:ezuser.php

示例4: activateExtensions

    /**
     * Will make sure that all extensions that has settings directories
     * are added to the eZINI override list.
     *
     * @param string $extensionType See {@link eZExtension::activeExtensions()}, value of false is deprecated as of 4.4
     * @param eZINI|null $siteINI Optional parameter to be able to only do change on specific instance of site.ini
     */
    static function activateExtensions( $extensionType = 'default', eZINI $siteINI = null )
    {
        if ( $siteINI === null )
        {
            $siteINI = eZINI::instance();
        }

        if ( $extensionType === false )
        {
            eZDebug::writeStrict( "Setting parameter \$extensionType to false is deprecated as of 4.4, see doc/bc/4.4!", __METHOD__ );
        }

        $extensionDirectory = self::baseDirectory();
        $activeExtensions   = self::activeExtensions( $extensionType, $siteINI );
        $hasExtensions = false;
        foreach ( $activeExtensions as $activeExtension )
        {
            $extensionSettingsPath = $extensionDirectory . '/' . $activeExtension . '/settings';

            if ( $extensionType === 'access' )
                $siteINI->prependOverrideDir( $extensionSettingsPath, true, 'extension:' . $activeExtension, 'sa-extension' );
            else
                $siteINI->prependOverrideDir( $extensionSettingsPath, true, 'extension:' . $activeExtension, 'extension' );

            if ( isset( $GLOBALS['eZCurrentAccess'] ) )
                self::prependSiteAccess( $activeExtension, $GLOBALS['eZCurrentAccess']['name'], $siteINI );

            $hasExtensions = true;
        }
        if ( $hasExtensions )
            $siteINI->load();
    }
开发者ID:nottavi,项目名称:ezpublish,代码行数:39,代码来源:ezextension.php

示例5: createVersionNameJoinsSQLString

 /**
  * @deprecated Since 5.0
  */
 static function createVersionNameJoinsSQLString($useVersionName, $includeAnd = true, $onlyTranslated = false, $lang = false, $treeTableName = 'ezcontentobject_tree')
 {
     eZDebug::writeStrict('Method ' . __METHOD__ . ' has been deprecated in 5.0', 'Deprecation');
     $versionNameJoins = '';
     if ($useVersionName) {
         if ($includeAnd) {
             $versionNameJoins .= ' AND ';
         }
         $versionNameJoins .= " {$treeTableName}.contentobject_id = ezcontentobject_name.contentobject_id and\n                                   {$treeTableName}.contentobject_version = ezcontentobject_name.content_version and ";
         $versionNameJoins .= eZContentLanguage::sqlFilter('ezcontentobject_name', 'ezcontentobject');
     }
     return $versionNameJoins;
 }
开发者ID:brookinsconsulting,项目名称:ezecosystem,代码行数:16,代码来源:ezcontentobjecttreenode.php

示例6: selectOverrideScope

 /**
  * Function to handle bc with code from pre 4.4 that does not know about scopes
  *
  * @since 4.4
  * @param string|null $scope
  * @param string $identifier
  * @param string $dir
  * @param string $default
  * @return string
  */
 protected static function selectOverrideScope($scope, $identifier, $dir, $default)
 {
     if ($scope !== null) {
         $def = self::defaultOverrideDirs();
         if (isset($def[$scope])) {
             return $scope;
         }
         eZDebug::writeWarning("Undefined override dir scope: '{$scope}' with dir: '{$dir}'", __METHOD__);
     }
     if ($identifier === 'siteaccess') {
         return 'siteaccess';
     } else {
         if ($identifier && strpos($identifier, 'extension:') === 0) {
             return 'extension';
         } else {
             if (strpos($dir, 'siteaccess') !== false) {
                 return 'siteaccess';
             } else {
                 if (strpos($dir, 'extension') !== false) {
                     return 'extension';
                 }
             }
         }
     }
     eZDebug::writeStrict("Could not figgure out INI scope for \$identifier: '{$identifier}' with \$dir: '{$dir}', falling back to '{$default}'", __METHOD__);
     return $default;
 }
开发者ID:runelangseid,项目名称:ezpublish,代码行数:37,代码来源:ezini.php

示例7: ezx18n

/**
 * @deprecated Since 4.3, superseded by {@link ezpI18n::tr()} instead
 *             Will be kept for compatability in 4.x.
 */
function ezx18n($extension, $context, $source, $comment = null, $arguments = null)
{
    eZDebug::writeStrict('Function ezx18n() has been deprecated in 4.3 in favor of ezpI18n::tr()', 'Deprecation');
    return ezpI18n::tr($context, $source, $comment, $arguments);
}
开发者ID:mugoweb,项目名称:ezpublish-legacy,代码行数:9,代码来源:i18n.php

示例8: setDebugINI

 /**
  * Sets the INI object
  *
  * @param eZINI $ini The eZINI object to set.
  *
  * @deprecated Since 4.5
  */
 static function setDebugINI( $ini )
 {
     eZDebug::writeStrict( __METHOD__ . ' is deprecated as of 4.5.', __METHOD__ );
 }
开发者ID:sushilbshinde,项目名称:ezpublish-study,代码行数:11,代码来源:ezdebugsetting.php

示例9: registerShutdownFunction

 /**
  * Registers the shutdown function.
  * @see eZExpiryHandler::shutdown()
  * @deprecated See EZP-22749
  */
 public static function registerShutdownFunction()
 {
     eZDebug::writeStrict(__METHOD__ . " is deprecated. See EZP-22749.", __METHOD__ . " is deprecated");
 }
开发者ID:patrickallaert,项目名称:ezpublish-legacy-php7,代码行数:9,代码来源:ezexpiryhandler.php

示例10: templateInit

/**
 * Function to get template instance, load autoloads (operators) and set default settings.
 *
 * @deprecated Since 4.3, superseded by {@link eZTemplate::factory()}
 *             Will be kept for compatability in 4.x.
 * @param string $name (Not supported as it was prevoisly set on same instance anyway)
 * @return eZTemplate
 */
function templateInit($name = false)
{
    eZDebug::writeStrict('Function templateInit() has been deprecated in 4.3 in favor of eZTemplate::factory()', 'Deprecation');
    return eZTemplate::factory();
}
开发者ID:CG77,项目名称:ezpublish-legacy,代码行数:13,代码来源:template.php

示例11: array

// 	Attn: Licensing Dept. eZ Systems AS, Klostergata 30, N-3732 Skien, Norway
//
//  IMPORTANT: THE SOFTWARE IS LICENSED, NOT SOLD. ADDITIONALLY, THE
//  SOFTWARE IS LICENSED "AS IS," WITHOUT ANY WARRANTIES WHATSOEVER.
//  READ THE eZ BUL BEFORE USING, INSTALLING OR MODIFYING THE SOFTWARE.

// ## END COPYRIGHT, LICENSE AND WARRANTY NOTICE ##
//

/*! \file ezfindexcontent.php
*/

/* @type $cli eZCli */
/* @type $script eZScript */

eZDebug::writeStrict( "This cronjob is deprecated in favor of the standard cronjobs/indexcontent.php provided by eZ Publish" );

if ( !$isQuiet )
{
    $cli->output( "Starting processing pending search engine modifications" );
}

// check that solr is enabled and used
$eZSolr = eZSearch::getEngine();
if ( !( $eZSolr instanceof eZSolr ) )
{
    $script->shutdown( 1, 'The current search engine plugin is not eZSolr' );
}

$contentObjects = array();
$db = eZDB::instance();
开发者ID:sushilbshinde,项目名称:ezpublish-study,代码行数:31,代码来源:ezfindexcontent.php

示例12: accessAllowed

/**
 * Checks if access is allowed to a module/view based on site.ini[SiteAccessRules]Rules settings
 *
 * @see eZModule::accessAllowed()
 * @deprecated Since 4.4
 * @param eZURI $uri
 * @return array An associative array with:
 *   'result'       => bool   Indicates if access is allowed
 *   'module'       => string Module name
 *   'view'         => string View name
 *   'view_checked' => bool   Indicates if view access has been checked
 */
function accessAllowed(eZURI $uri)
{
    eZDebug::writeStrict('Function accessAllowed() has been deprecated in 4.4 in favor of eZModule::accessAllowed()', 'Deprecation');
    return eZModule::accessAllowed($uri);
}
开发者ID:netbliss,项目名称:ezpublish,代码行数:17,代码来源:access.php

示例13: imageInit

/**
 * Image manager instance
 *
 * @package kernel
 * @deprecated Deprecated as of 4.3, use {@link eZImageManager::factory()} instead.
 */

function imageInit()
{
    eZDebug::writeStrict( 'Function imageInit() has been deprecated in 4.3 in favor of eZImageManager::factory()', 'Deprecation' );
    return eZImageManager::factory();
}
开发者ID:nottavi,项目名称:ezpublish,代码行数:12,代码来源:image.php


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