Property | Type | Description | |
---|---|---|---|
$associationManager | |||
$cacheTables | array | ||
$columns | array | ||
$filters | array | ||
$redbean | RedBeanPHP\OODB | ||
$tables | array | ||
$toolbox |
Method | Description | |
---|---|---|
__construct ( |
Constructor, creates a new instance of DupManager. | |
camelfy ( array $array, boolean $dolphinMode = false ) : array | Recursively turns the keys of an array into camelCase. | |
dup ( RedBeanPHP\OODBBean $bean, array $trail = [], boolean $preserveIDs = FALSE ) : RedBeanPHP\OODBBean | Makes a copy of a bean. This method makes a deep copy of the bean.The copy will have the following features. | |
exportAll ( array | RedBeanPHP\OODBBean $beans, boolean $parents = FALSE, array $filters = [], string $caseStyle = 'snake' ) : array | Exports a collection of beans recursively. | |
getSchema ( ) : array | Returns a schema array for cache. | |
setCacheTables ( boolean $yesNo ) | Indicates whether you want the duplication manager to cache the database schema. | |
setFilters ( array $filters ) : void | A filter array is an array with table names. | |
setTables ( array $tables ) : void | For better performance you can pass the tables in an array to this method. |
Method | Description | |
---|---|---|
duplicate ( RedBeanPHP\OODBBean $bean, array $trail = [], boolean $preserveIDs = FALSE ) : RedBeanPHP\OODBBean | ||
hasOwnList ( string $type, string $target ) : boolean | Determines whether the bean has an own list based on schema inspection from realtime schema or cache. | |
hasSharedList ( string $type, string $target ) : boolean | Determines whether the bea has a shared list based on schema inspection from realtime schema or cache. |
Method | Description | |
---|---|---|
copyOwnBeans ( RedBeanPHP\OODBBean $copy, string $owned, array $beans, array $trail, boolean $preserveIDs ) : void | Copies the own beans in a bean, i.e. all the ownBean-lists. | |
copySharedBeans ( RedBeanPHP\OODBBean $copy, string $shared, array $beans ) : void | Copies the shared beans in a bean, i.e. all the sharedBean-lists. | |
createCopy ( RedBeanPHP\OODBBean $bean ) : RedBeanPHP\OODBBean | Creates a copy of bean $bean and copies all primitive properties (not lists) and the parents beans to the newly created bean. Also sets the ID of the bean to 0. | |
getListNames ( string $typeName ) : array | Given the type name of a bean this method returns the canonical names of the own-list and the shared-list properties respectively. | |
inTrailOrAdd ( array &$trail, RedBeanPHP\OODBBean $bean ) : boolean | Generates a key from the bean type and its ID and determines if the bean occurs in the trail, if not the bean will be added to the trail. |
public __construct ( |
||
$toolbox |
public exportAll ( array | RedBeanPHP\OODBBean $beans, boolean $parents = FALSE, array $filters = [], string $caseStyle = 'snake' ) : array | ||
$beans | array | RedBeanPHP\OODBBean | beans to be exported |
$parents | boolean | also export parents |
$filters | array | only these types (whitelist) |
$caseStyle | string | case style identifier |
return | array |
public setCacheTables ( boolean $yesNo ) | ||
$yesNo | boolean | TRUE to use caching, FALSE otherwise |
public setFilters ( array $filters ) : void | ||
$filters | array | list of tables to be filtered |
return | void |
array( TABLE1, TABLE2 ... )
or
array( TABLE1 => array( COLUMN1, COLUMN2 ... ) ... )
protected AssociationManager,RedBeanPHP $associationManager | ||
return |