本文整理汇总了PHP中eZINI::settingType方法的典型用法代码示例。如果您正苦于以下问题:PHP eZINI::settingType方法的具体用法?PHP eZINI::settingType怎么用?PHP eZINI::settingType使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类eZINI
的用法示例。
在下文中一共展示了eZINI::settingType方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$blocks = $ini->groups();
$placements = $ini->groupPlacements();
$settings = array();
$blockCount = 0;
$totalSettingCount = 0;
foreach( $blocks as $block=>$key )
{
$settingsCount = 0;
$blockRemoveable = false;
$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