wCMF
3.6
|
Public Member Functions | |
& | getInstance () |
getKnownTypes () | |
isKnownType ($type) | |
createObjectQuery ($type) | |
createStringQuery () | |
composeOID ($params) | |
getBaseOID ($oid, $validate=true) | |
decomposeOID ($oid, $validate=true) | |
getOIDParameter ($oid, $param, $validate=true) | |
setOIDParameter ($oid, $param, $value) | |
isValidOID ($oid) | |
getNumberOfPKs ($type) | |
getDummyId () | |
isDummyId ($id) | |
Private Member Functions | |
extractOIDParts ($oid) | |
Static Private Attributes | |
static | $knownTypes = null |
static | $numPkKeys = array() |
static | $dummyIdPattern = 'wcmf[A-Za-z0-9]{32}' |
PersistenceFacade instantiates the PersistenceFacade implementation.
Definition at line 37 of file class.PersistenceFacade.php.
& PersistenceFacade::getInstance | ( | ) |
Returns an instance of the PersistenceFacade implementation.
Definition at line 47 of file class.PersistenceFacade.php.
Referenced by RoleRDBBase\addChild(), UserRDBBase\addChild(), RDBMapper\appendChildData(), TableRDBMapper\applyDataOnLoad(), LockManagerRDB\aquireLockImpl(), SearchIndexController\collect(), NodeUtil\completeNode(), RDBMapper\connect(), CopyController\copyNode(), NodeToSingleTableMapper\create(), NodeXMLDBMapper\createImpl(), RDBMapper\createImpl(), UserManagerRDB\createRoleImpl(), UserManagerRDB\createUserImpl(), PersistentObject\delete(), NodeToSingleTableMapper\delete(), NodeXMLDBMapper\deleteImpl(), RDBMapper\deleteImpl(), Localization\deleteLanguage(), Localization\deleteTranslation(), NodeSerializer\deserializeNode(), StringQuery\execute(), DeleteController\executeKernel(), SaveController\executeKernel(), InsertController\executeKernel(), AssociateController\executeKernel(), AdminController\executeKernel(), DisplayController\executeKernel(), SortController\executeKernel(), ChildrenListController\executeKernel(), ConfigController\executeKernel(), PrincipalController\executeKernel(), PagingController\executeKernel(), ObjectQuery\executeString(), SearchUtil\find(), g_getObjects(), g_getOIDArray(), g_getOIDs(), g_getTypes(), getBaseOID(), TreeViewController\getChildren(), RoleRDBBase\getChildrenEx(), UserRDBBase\getChildrenEx(), ObjectQuery\getConnection(), NodeUtil\getConnectionToAncestor(), NodeUtil\getConnectionToDescendant(), CopyController\getCopyOID(), NodeUtil\getDescriptionFromType(), NodeUtil\getDisplayNameFromType(), NodeUtil\getDisplayValues(), NodeUtil\getInputControl(), NodeUnifiedRDBMapper\getInsertSQL(), FormUtil\getListMap(), PersistentObject\getMapper(), RDBMapper\getNextId(), AbstractFormat\getNode(), SearchController\getObjects(), ObjectQuery\getObjectTemplate(), SimplePagingController\getOIDs(), ChildrenListController\getOIDs(), NodeListController\getOIDs(), NodeToSingleTableMapper\getOIDs(), ObjectQuery\getOrderby(), NodeToSingleTableMapper\getParentOID(), NodeUtil\getParentQuery(), NodeUtil\getPath(), RDBMapper\getPKNamesForType(), NodeUtil\getPossibleChildren(), NodeUtil\getPossibleParents(), NodeToSingleTableMapper\getPropertyMap(), RemoteCapablePersistenceFacadeImpl\getProxyObject(), User\getRoleByName(), TreeViewController\getRootOIDs(), NodeUtil\getSelfQuery(), RDBMapper\getSequenceTablename(), AsyncPagingController\getSortingProperties(), Localization\getSupportedLanguages(), User\getUser(), SearchIndexController\getWorkPackage(), SearchIndexController\index(), XMLExportController\initExport(), BatchController\initialize(), Application\initialize(), NodeToSingleTableMapper\load(), RoleRDBBase\loadChildren(), UserRDBBase\loadChildren(), Node\loadChildren(), CopyController\loadFromTarget(), NodeXMLDBMapper\loadImpl(), RDBMapper\loadImpl(), BatchDisplayController\loadNode(), Node\loadParents(), Localization\loadTranslatedObject(), AuthUser\login(), StringQuery\mapToDatabase(), ChildrenListController\modifyModel(), AsyncPagingController\modifyModel(), ObjectQuery\ObjectQuery(), PersistentIterator\proceed(), MultipleActionController\replaceVariablesString(), FormUtil\resolveByOid(), PersistentObject\save(), NodeToSingleTableMapper\save(), NodeXMLDBMapper\saveImpl(), RDBMapper\saveImpl(), CopyController\saveToTarget(), Localization\saveTranslatedValue(), smarty_function_linktext(), SortController\sortAll(), CopyController\validate(), XMLExportController\writeNode(), and LogOutputStrategy\writeObject().
PersistenceFacade::getKnownTypes | ( | ) |
Get a list of types defined in the application.
Definition at line 60 of file class.PersistenceFacade.php.
References InifileParser\getInstance().
Referenced by g_getTypes(), and SearchIndexController\getWorkPackage().
PersistenceFacade::isKnownType | ( | $type | ) |
Check if a type is defined in the application.
type | The type to check |
Definition at line 74 of file class.PersistenceFacade.php.
Referenced by StringQuery\buildQuery(), NodeSerializer\deserializeNode(), StringQuery\execute(), SaveController\executeKernel(), g_getObjects(), g_getOIDs(), NodeUtil\getDisplayValues(), NodeUnifiedRDBMapper\getInsertSQL(), PersistentObject\getMapper(), AbstractFormat\getNode(), AsyncPagingController\getObjects(), NodeUnifiedRDBMapper\getUpdateSQL(), DisplayController\initialize(), SOAPFormat\isSerializedNode(), MultipleActionController\replaceVariablesString(), and NodeListController\validate().
PersistenceFacade::createObjectQuery | ( | $type | ) |
Create an object query.
type | The object type to search for |
Definition at line 86 of file class.PersistenceFacade.php.
Referenced by Localization\deleteLanguage(), Localization\deleteTranslation(), g_getObjects(), NodeUtil\getChildQuery(), LockManagerRDB\getLockImpl(), NodeUtil\getNodeQuery(), NodeUtil\getParentQuery(), NodeUtil\getSelfQuery(), UserManagerRDB\initialize(), Localization\loadTranslation(), LockManagerRDB\releaseLockImpl(), Localization\saveTranslation(), and SOAPController\soapSearch().
PersistenceFacade::createStringQuery | ( | ) |
Create a string query.
Definition at line 94 of file class.PersistenceFacade.php.
Referenced by g_getOIDs(), and SOAPController\soapAdvancedSearch().
PersistenceFacade::composeOID | ( | $params | ) |
Compose an OID from several parameters.
params | An assoziative array with the keys 'prefix', 'type' and 'id' where the value of id maybe a single value or an array (for compound primary keys). If id is an array, the order of the values must match the order of the primary key names given by PersistenceMapper::getPkNames(). If only type is given in params, the primary key columns will be set with initial values. |
Definition at line 106 of file class.PersistenceFacade.php.
References WCMFException\throwEx().
Referenced by XMLUtil\_GetOID(), XMLUtil\_InsertNode(), NodeRDBMapper\applyDataOnCreate(), NodeRDBMapper\applyDataOnLoad(), RDBMapper\constructOID(), RoleRDBBase\deleteChild(), UserRDBBase\deleteChild(), NodeXMLDBMapper\deleteImpl(), UserController\executeKernel(), g_getOIDs(), getBaseOID(), CopyController\getCopyOID(), FormUtil\getListMap(), NullNode\getOID(), NMUserRoleBase\getRoleRDBOID(), XMLUtil\getRootOID(), NMUserRoleBase\getUserRDBOID(), LocktableBase\getUserRDBOID(), NodeXMLDBMapper\loadImpl(), RemoteCapablePersistenceFacadeImpl\loadRemoteObject(), RemoteCapablePersistenceFacadeImpl\makeUmis(), PersistentObject\PersistentObject(), PersistentObject\setDBID(), Table\Table(), and PersistentObject\updateOID().
PersistenceFacade::getBaseOID | ( | $oid, | |
$validate = true |
|||
) |
Get the base oid for a given oid (
oid | The object id |
validate | True/False if an exception should be thrown if the OID is invalid (default: true) |
Definition at line 142 of file class.PersistenceFacade.php.
References BUILDDEPTH_SINGLE, composeOID(), decomposeOID(), and getInstance().
Referenced by PersistentObject\getBaseOID(), and Node\removeDuplicateOidsWithoutRole().
PersistenceFacade::decomposeOID | ( | $oid, | |
$validate = true |
|||
) |
Decompose an OID into several parameters.
oid | The OID of the object. |
validate | True/False if an exception should be thrown if the OID is invalid (default: true) |
Definition at line 165 of file class.PersistenceFacade.php.
References WCMFException\throwEx().
Referenced by XMLUtil\_GetNodePath(), XMLUtil\_InsertNode(), RightsManager\authorize(), PersistenceFacadeImpl\delete(), NodeXMLDBMapper\deleteImpl(), InsertController\executeKernel(), getBaseOID(), CopyController\getCopyOID(), NodeUnifiedRDBMapper\getInsertSQL(), FormUtil\getListMap(), UserManager\getPrincipal(), RemoteCapablePersistenceFacadeImpl\getProxyObject(), NodeUtil\getSelfQuery(), NodeUnifiedRDBMapper\getUpdateSQL(), DisplayController\initialize(), TableUnifiedRDBMapper\isValidOID(), NodeUnifiedRDBMapper\isValidOID(), PersistenceFacadeImpl\load(), NodeXMLDBMapper\loadImpl(), RemoteCapablePersistenceFacadeImpl\loadRemoteObject(), RemoteCapablePersistenceFacadeImpl\makeUmis(), NodeUnifiedRDBMapper\prepareInsert(), NodeUnifiedRDBMapper\propertyChanged(), ObjectQuery\registerObjectTemplate(), UserManager\removePrincipal(), and PersistentObject\setOID().
PersistenceFacade::getOIDParameter | ( | $oid, | |
$param, | |||
$validate = true |
|||
) |
Get a part of an object id (e.g. the 'type' parameter).
oid | The OID of the object. |
param | The name of the parameter. |
validate | True/False if an exception should be thrown if the OID is invalid (default: true) |
Definition at line 181 of file class.PersistenceFacade.php.
Referenced by NodeUnifiedRDBMapper\createPKCondition(), RemoteCapablePersistenceFacadeImpl\delete(), RoleRDBBase\deleteChild(), UserRDBBase\deleteChild(), SOAPFormat\deserializeNode(), SaveController\executeKernel(), InsertController\executeKernel(), AssociateController\executeKernel(), DisplayController\executeKernel(), g_getOIDs(), NodeUnifiedRDBMapper\getChildrenDisassociateSQL(), RoleRDBBase\getChildrenEx(), UserRDBBase\getChildrenEx(), NodeUnifiedRDBMapper\getChildrenSelectSQL(), NodeUtil\getConnectionToAncestor(), NodeUtil\getConnectionToDescendant(), PersistentObject\getDBID(), SaveController\getImageConstraints(), AbstractFormat\getNode(), Node\getNumChildren(), Node\getNumParents(), NodeUtil\getPossibleChildren(), NodeUtil\getPossibleParents(), ChildrenListController\getRealSubjectType(), SaveController\getUploadDir(), SOAPFormat\isSerializedNode(), RemoteCapablePersistenceFacadeImpl\load(), Node\loadChildren(), CopyController\loadFromTarget(), RDBMapper\loadImpl(), Node\loadParents(), RemoteCapablePersistenceFacadeImpl\loadRemoteObject(), ChildrenListController\modifyModel(), AsyncPagingController\modifyModel(), RemoteCapablePersistenceFacadeImpl\registerProxyObject(), RemoteCapablePersistenceFacadeImpl\save(), SortController\sortAll(), and CopyController\validate().
PersistenceFacade::setOIDParameter | ( | $oid, | |
$param, | |||
$value | |||
) |
Set a part of an object id (e.g. the 'type' parameter).
oid | The OID of the object. |
param | The name of the parameter. |
value | The value of the parameter. |
Definition at line 195 of file class.PersistenceFacade.php.
PersistenceFacade::isValidOID | ( | $oid | ) |
Validate a given OID.
oid | The OID of the object. |
Definition at line 208 of file class.PersistenceFacade.php.
Referenced by LockManager\aquireLock(), RightsManager\authorize(), RoleRDBBase\deleteChild(), UserRDBBase\deleteChild(), SaveController\executeKernel(), InsertController\executeKernel(), AssociateController\executeKernel(), DisplayController\executeKernel(), SortController\executeKernel(), g_getObjects(), g_getOIDArray(), InternalLink\getAnchorOID(), TreeViewController\getChildren(), SaveController\getImageConstraints(), NodeUnifiedRDBMapper\getInsertSQL(), FormUtil\getListMap(), LockManager\getLock(), NodeUtil\getPath(), InternalLink\getReferencedOID(), NodeUnifiedRDBMapper\getUpdateSQL(), SaveController\getUploadDir(), SearchIndexController\index(), DisplayController\initialize(), SOAPFormat\isSerializedNode(), RoleRDBBase\loadChildren(), UserRDBBase\loadChildren(), Node\loadChildren(), Node\loadParents(), AsyncPagingController\modifyModel(), PersistentObject\PersistentObject(), LockManager\releaseLock(), LockManager\releaseLocks(), FormUtil\resolveByOid(), NodeXMLDBMapper\saveImpl(), SortController\sortAll(), Table\Table(), ConcurrencyController\validate(), AssociateController\validate(), ChildrenListController\validate(), and CopyController\validate().
PersistenceFacade::getNumberOfPKs | ( | $type | ) |
Get the number of primary keys a type has.
type | The type to check. |
Definition at line 221 of file class.PersistenceFacade.php.
PersistenceFacade::getDummyId | ( | ) |
Get a dummy id ("wcmf" + unique 32 character string).
Definition at line 240 of file class.PersistenceFacade.php.
Referenced by NodeRDBMapper\applyDataOnCreate().
PersistenceFacade::isDummyId | ( | $id | ) |
Check if a given id is a dummy id.
id | The id to check |
Definition at line 249 of file class.PersistenceFacade.php.
Referenced by NodeUnifiedRDBMapper\prepareInsert(), and ObjectQuery\registerObjectTemplate().
|
private |
Extract all parts of an object id.
oid | The object id |
Definition at line 262 of file class.PersistenceFacade.php.
|
staticprivate |
Definition at line 39 of file class.PersistenceFacade.php.
|
staticprivate |
Definition at line 40 of file class.PersistenceFacade.php.
|
staticprivate |
Definition at line 41 of file class.PersistenceFacade.php.