Relations.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. Lib::loadClass('ACL');
  3. Lib::loadClass('Api_WfsNs');
  4. class Relations {
  5. static function isAllowedToCreateRelation($userLogin, $typeName, $primaryKey, $remoteTypeName) {
  6. return false;
  7. }
  8. static function isAllowedToGetRelation($userLogin, $typeName, $primaryKey, $remoteTypeName) {
  9. return false;
  10. }
  11. static function isAllowedToDeleteRelation($userLogin, $typeName, $primaryKey, $remoteTypeName) {
  12. return false;
  13. }
  14. static function getRelations($typeName, $primaryKey) {
  15. $acl = ACL::getAclByNamespace( Api_WfsNs::toNamespace($typeName) );
  16. throw new Exception("TODO: Relations::getRelations");
  17. }
  18. static function createRelations($typeName, $primaryKey, $remoteTypeName, $listRemotePrimaryKeys) {
  19. $acl = ACL::getAclByNamespace( Api_WfsNs::toNamespace($typeName) );
  20. throw new Exception("TODO: Relations::createRelation");
  21. }
  22. static function deleteRelations($typeName, $primaryKey, $remoteTypeName, $listRemotePrimaryKeys) {
  23. $acl = ACL::getAclByNamespace( Api_WfsNs::toNamespace($typeName) );
  24. throw new Exception("TODO: Relations::getRelations");
  25. }
  26. }