Config_Container::createBlank

Config_Container::createBlank() – ブランク行をアイテムに追加する

Synopsis

require_once 'Config/Container.php';

objectConfig_Container::createBlank ( mixed $where = 'bottom' , mixed $target = = null )

Description

現在のアイテムがsectionでなければいけません。 この関数は、createItem() をヘルパー関数として呼びます。

Parameter

string $where

新しいアイテムを生成する位置。('top', 'bottom', 'before', 'after')

object $target

$whereで、 'before''after'を指定した場合のみ必要。

Return value

object - 新しいアイテムのリファレンスを返します。

Throws

Possible PEAR_Error values
エラーコード エラー値 意味 解決策
  "    

Note

This function can not be called statically.

Example

createBlank()を使用して新しいディレクティブを作成する

<?php
$section 
=& new Config_Container('section''conf');
$directive =& $section->createDirective('user''mansion');
$section->createBlank('before'$directive);
?>