RedBeanPHP\Facade::exportAll PHP Method

exportAll() public static method

What will be exported: * contents of the bean * all own bean lists (recursively) * all shared beans (not THEIR own lists)
public static exportAll ( array | OODBBean $beans, boolean $parents = FALSE, array $filters = [] ) : array
$beans array | OODBBean beans to be exported
$parents boolean whether you want parent beans to be exported
$filters array whitelist of types
return array
    public static function exportAll($beans, $parents = FALSE, $filters = array())
    {
        return self::$duplicationManager->exportAll($beans, $parents, $filters, self::$exportCaseStyle);
    }

Usage Example

Example #1
0
 public function index(Request $request)
 {
     $beans = R::findAll($model);
     $records = R::exportAll($beans, true);
     $tables = R::getAll('SELECT name FROM sqlite_master WHERE type = "table"');
     return view('umodel.index', ['records' => $records, 'tables' => $tables]);
 }
All Usage Examples Of RedBeanPHP\Facade::exportAll