pnBlockGetInfoByTitle [aus Modul: pnBlocks]
Aufruf
array = pnBlockGetInfoByTitle($title);
Aufgabe
Liefert sämtliche Informationen zu einem Block mittels seines Titels.
Eingabe
| string | $title | Titel des Blocks, dessen Informationen geladen werden sollen |
Ausgabe
Assoziatives Array der Informationen zum jeweiligen Block. Void, falls ein Fehler aufgetreten ist. Mögliche Fehlerkonstanten sind:
BAD_PARAM
DATABASE_ERROR
ID_NOT_EXIST
Beispiel
$block = pnBlockGetInfoByTitle('Login');
print_r($block);
/* liefert nachfolgendes Array (Auszug)
Array
(
[bid] => 13
[mid] => 0
[language] =>
[last_update] => 20041008103400
[refresh] => 1800
[active] => 1
[weight] => 4.0
[position] => l
[content] =>
[title] => Login
[unix_update] => 1097224440
)
*/
Modul-/PostNuke-Version
PostNuke 0.762
Siehe auch