[ Index ]
 

Code source de Symfony 1.0.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/util/ -> sfYaml.class.php (sommaire)

(pas de description)

Poids: 105 lignes (2 kb)
Inclus ou requis: 1 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

sfYaml:: (4 méthodes):
  load()
  dump()
  getIncludeContents()
  echoln()


Classe: sfYaml  - X-Ref

sfYaml class.

load($input)   X-Ref
Load YAML into a PHP array statically

The load method, when supplied with a YAML stream (string or file),
will do its best to convert YAML in a file into a PHP array.

Usage:
<code>
$array = sfYAML::Load('config.yml');
print_r($array);
</code>

param: string $input Path of YAML file or string containing YAML
return: array

dump($array)   X-Ref
Dump YAML from PHP array statically

The dump method, when supplied with an array, will do its best
to convert the array into friendly YAML.

param: array $array PHP array
return: string

getIncludeContents($input)   X-Ref
Pas de description

echoln($string)   X-Ref
Wraps echo to automatically provide a newline




Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7