本文整理汇总了PHP中eZINI::findSettingPlacement方法的典型用法代码示例。如果您正苦于以下问题:PHP eZINI::findSettingPlacement方法的具体用法?PHP eZINI::findSettingPlacement怎么用?PHP eZINI::findSettingPlacement使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类eZINI
的用法示例。
在下文中一共展示了eZINI::findSettingPlacement方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
$blockEditable = true;
foreach( $key as $setting=>$settingKey )
{
$hasSetPlacement = false;
$type = $ini->settingType( $settingKey );
$removeable = false;
switch ( $type )
{
case 'array':
if ( count( $settingKey ) == 0 )
$settings[$block]['content'][$setting]['content'] = array();
foreach( $settingKey as $settingElementKey=>$settingElementValue )
{
$settingPlacement = $ini->findSettingPlacement( $placements[$block][$setting][$settingElementKey] );
if ( $settingElementValue != null )
{
// Make a space after the ';' to make it possible for
// the browser to break long lines
$settings[$block]['content'][$setting]['content'][$settingElementKey]['content'] = str_replace( ';', "; ", $settingElementValue );
}
else
{
$settings[$block]['content'][$setting]['content'][$settingElementKey]['content'] = "";
}
$settings[$block]['content'][$setting]['content'][$settingElementKey]['placement'] = $settingPlacement;
$hasSetPlacement = true;
if ( $settingPlacement != 'default' )
{
$removeable = true;