Using code provided by Ryan here, I've created a module that coverts a PageArray into JSON format.
It's been super useful to me, and I'm hoping it will be for others as well
Posted 21 July 2012 - 10:53 PM
$this->addHook('PageArray::toJSON', $this, 'pagesToJSON', $options);$myPages->toJSON(array('fields' => 'id,name'));Posted 22 July 2012 - 05:43 AM
Posted 22 July 2012 - 07:04 AM
$myPages->toJSON($a, $b, $c);
public function toJSON(HookEvent $event) {
$a = $event->arguments[0];
$b = $event->arguments[1];
$c = $event->arguments[2];
}
$options = $event->arguments[0];
Community Support →
Modules/Plugins →
Release: LocalAudioFiles MP3-DBStarted by horst, Yesterday, 06:41 PM |
|
|
||
Community Support →
Modules/Plugins →
Inline EditorStarted by Sinmok, 10 May 2013 |
|
|
||
Community Support →
Modules/Plugins →
Module: Site indexerStarted by Alessio Dal Bianco, 08 May 2013 |
|
|
||
Community Support →
Modules/Plugins →
Form Builder - Form with more than 1 formbuilderfile inputStarted by theGC, 07 May 2013 |
|
|
||
Community Support →
General Support →
How can I set/get module-data from DB when not implementing ConfigurableModule?Started by horst, 14 Apr 2013 |
|
|
0 members, 0 guests, 0 anonymous users