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


PHP changeSiteAccessSetting函数代码示例

本文整理汇总了PHP中changeSiteAccessSetting函数的典型用法代码示例。如果您正苦于以下问题:PHP changeSiteAccessSetting函数的具体用法?PHP changeSiteAccessSetting怎么用?PHP changeSiteAccessSetting使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: changeSiteAccessSetting

                                                if ($level == 'notice') {
                                                    $level = eZDebug::LEVEL_NOTICE;
                                                } else {
                                                    if ($level == 'timing') {
                                                        $level = eZDebug::LEVEL_TIMING_POINT;
                                                    }
                                                }
                                            }
                                        }
                                    }
                                    $allowedDebugLevels[] = $level;
                                }
                            }
                        } else {
                            if ($flag == 's') {
                                changeSiteAccessSetting($siteaccess, $optionData);
                            }
                        }
                    }
                }
            }
        }
    }
}
$script->setUseDebugOutput($debugOutput);
$script->setAllowedDebugLevels($allowedDebugLevels);
$script->setUseDebugAccumulators($useDebugAccumulators);
$script->setUseDebugTimingPoints($useDebugTimingpoints);
$script->setUseIncludeFiles($useIncludeFiles);
$script->setIsQuiet($isQuiet);
if ($webOutput) {
开发者ID:nfrp,项目名称:ezpublish,代码行数:31,代码来源:updatecontentobjectname.php

示例2: changeSiteAccessSetting

    } else {
        if ($cronPart === false) {
            $readOptions = false;
            $cronPart = $arg;
        }
    }
}
$script->setUseDebugOutput($debugOutput);
$script->setAllowedDebugLevels($allowedDebugLevels);
$script->setUseDebugAccumulators($useDebugAccumulators);
$script->setUseDebugTimingPoints($useDebugTimingpoints);
$script->setUseIncludeFiles($useIncludeFiles);
$script->setIsQuiet($isQuiet);
$siteAccessChangeMessage = false;
if ($siteAccessSet) {
    $siteAccessChangeMessage = changeSiteAccessSetting($siteaccess, $siteAccessSet);
}
if ($webOutput) {
    $useColors = true;
}
$cli->setUseStyles($useColors);
$script->setDebugMessage("\n\n" . str_repeat('#', 36) . $cli->style('emphasize') . " DEBUG " . $cli->style('emphasize-end') . str_repeat('#', 36) . "\n");
$script->setUseSiteAccess($siteaccess);
$script->initialize();
if (!$script->isInitialized()) {
    $cli->error('Error initializing script: ' . $script->initializationError() . '.');
    $script->shutdown(0);
}
if ($siteAccessChangeMessage) {
    $cli->output($siteAccessChangeMessage);
} else {
开发者ID:brookinsconsulting,项目名称:ezecosystem,代码行数:31,代码来源:runcronjobs.php

示例3: value

    $cli->error( "Missing NAME value ( could be session, expired_session, preferences, browse, tipafriend, shop, forgotpassword, workflow,\n" .
                 "collaboration, collectedinformation, notification, searchstats or all )" );
    $script->shutdown( 1 );
}

$dbUser = $options['db-user'] ? $options['db-user'] : false;
$dbPassword = $options['db-password'] ? $options['db-password'] : false;
$dbHost = $options['db-host'] ? $options['db-host'] : false;
$dbName = $options['db-database'] ? $options['db-database'] : false;
$dbImpl = $options['db-driver'] ? $options['db-driver'] : false;
$showSQL = $options['sql'] ? true : false;
$siteAccess = $options['siteaccess'] ? $options['siteaccess'] : false;

if ( $siteAccess )
{
    changeSiteAccessSetting( $siteaccess, $siteAccess );
}

$cleanAllItems = false;
$clean = array( 'session' => false,
                'expired_session' => false,
                'preferences' => false,
                'browse' => false,
                'tipafriend' => false,
                'shop' => false,
                'forgotpassword' => false,
                'workflow' => false,
                'collaboration' => false,
                'collectedinformation' => false,
                'notification' => false,
                'searchstats' => false );
开发者ID:sushilbshinde,项目名称:ezpublish-study,代码行数:31,代码来源:cleanup.php

示例4: changeSiteAccessSetting

                             if ($level == 'notice') {
                                 $level = eZDebug::LEVEL_NOTICE;
                             } else {
                                 if ($level == 'timing') {
                                     $level = eZDebug::LEVEL_TIMING_POINT;
                                 }
                             }
                         }
                     }
                 }
                 $allowedDebugLevels[] = $level;
             }
         }
     } else {
         if ($flag == 's') {
             changeSiteAccessSetting($optionData);
         } else {
             if ($flag == 'l') {
                 $userLogin = $optionData;
             } else {
                 if ($flag == 'p') {
                     $userPassword = $optionData;
                 } else {
                     if ($flag == 'r') {
                         $repositoryID = $optionData;
                     }
                 }
             }
         }
     }
 }
开发者ID:brookinsconsulting,项目名称:ezecosystem,代码行数:31,代码来源:ezpm.php


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