| 1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- Lib::loadClass('ACL');
- Lib::loadClass('Api_WfsNs');
- class Relations {
- static function isAllowedToCreateRelation($userLogin, $typeName, $primaryKey, $remoteTypeName) {
- return false;
- }
- static function isAllowedToGetRelation($userLogin, $typeName, $primaryKey, $remoteTypeName) {
- return false;
- }
- static function isAllowedToDeleteRelation($userLogin, $typeName, $primaryKey, $remoteTypeName) {
- return false;
- }
- static function getRelations($typeName, $primaryKey) {
- $acl = ACL::getAclByNamespace( Api_WfsNs::toNamespace($typeName) );
- throw new Exception("TODO: Relations::getRelations");
- }
- static function createRelations($typeName, $primaryKey, $remoteTypeName, $listRemotePrimaryKeys) {
- $acl = ACL::getAclByNamespace( Api_WfsNs::toNamespace($typeName) );
- throw new Exception("TODO: Relations::createRelation");
- }
- static function deleteRelations($typeName, $primaryKey, $remoteTypeName, $listRemotePrimaryKeys) {
- $acl = ACL::getAclByNamespace( Api_WfsNs::toNamespace($typeName) );
- throw new Exception("TODO: Relations::getRelations");
- }
- }
|