[ Index ]

PHP Cross Reference of Yamoon 0.9.0

title

Body

[close]

/Yamoon/ -> Language.php (summary)

(no description)

File Size: 91 lines (2 kb)
Included or required: 2 times
Referenced: 0 times
Includes or requires: 1 file
 Yamoon/Config.php

Defines 1 class

Language:: (5 methods):
  Language()
  create()
  update()
  delete()
  dump()


Class: Language  - X-Ref

Language.php - manages language creation, update and delete.

Language($config, $id="")   X-Ref
Language Constructor.
$language = new Language($config, $id);

param $config Configuration class
param $id When provided, grab all info for that language

create($name, $cmd="")   X-Ref
Create a new language if there's no language with that name yet.
Construct object first.
$language->create("my lang", "/bin/mylang");

param $name The language name
param $cmd Its binary, if not provided try to check it
return $id Newly created language's ID

update()   X-Ref
Update the current language on the database using the current parameters.
$language->name = "my language's new name";
$language->update()


delete()   X-Ref
Delete the current language IF and only IF there's no service using it.
$language->delete();


dump()   X-Ref
Dumper.
$language->dump();




Generated: Sat Feb 19 17:29:53 2005 Cross-referenced by PHPXref 0.6