pnBlockVarsFromContent [aus Modul: pnBlocks]
Aufruf
array = pnBlockVarsFromContent($content);
Aufgabe
Mittels pnBlockVarsFromContent lassen sich Block-Variablen (z.B. Konfigurationseinstellungen eines Blocks) aus einem serialisierten String, der mit pnBlockVarsToContent erzeugt wurde, gesammelt in einem Array zurückgeben.
Eingabe
| string | $content | Block-Content |
Ausgabe
Assoziatives Array aller Konfigurationsvariablen (sieht potentiell für jeden Block anders aus, da sich die Konfigurationseinstellungen stark unterscheiden können)
Beispiel
$vars = pnBlockVarsFromContent($block['content']);
/* ergäbe beispielsweise
$vars['storiestype'] = 4;
$vars['topic'] = 2;
$vars['category'] = 1;
$vars['limit'] = 8;
*/
Modul-/PostNuke-Version
PostNuke 0.762
Siehe auch