本文整理汇总了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'));
}
}
示例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);
}
示例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();
}
示例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();
}
示例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;
}
示例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;
}
示例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);
}
示例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__ );
}
示例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");
}
示例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();
}
示例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();
示例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);
}
示例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();
}