Example #1
0
 /**
  * Exports a collection of beans. Handy for XML/JSON exports with a
  * Javascript framework like Dojo or ExtJS.
  * What will be exported:
  * - contents of the bean
  * - all own bean lists (recursively)
  * - all shared beans (not THEIR own lists)
  *
  * @param    array|RedBean_OODBBean $beans   beans to be exported
  * @param    boolean                $parents whether you want parent beans to be exported
  * @param   array                   $filters whitelist of types
  *
  * @return    array
  */
 public static function exportAll($beans, $parents = FALSE, $filters = array())
 {
     return self::$duplicationManager->exportAll($beans, $parents, $filters);
 }
 /**
  * Exports a collection of beans. Handy for XML/JSON exports with a
  * Javascript framework like Dojo or ExtJS.
  * What will be exported:
  * - contents of the bean
  * - all own bean lists (recursively)
  * - all shared beans (not THEIR own lists)
  *
  * @param    array|RedBean_OODBBean $beans   beans to be exported
  * @param    boolean                $parents whether you want parent beans to be exported
  * @param   array                   $filters whitelist of types
  *
  * @return    array
  */
 public function exportAll($beans, $parents = FALSE, $filters = array())
 {
     return $this->duplicationManager->exportAll($beans, $parents, $filters);
 }