Subversion Repositories oidplus

Rev

Rev 513 | Rev 549 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 513 Rev 514
Line 468... Line 468...
468
 
468
 
469
        // override this function if you want your object type to save
469
        // override this function if you want your object type to save
470
        // attachments in directories with easy names.
470
        // attachments in directories with easy names.
471
        // Take care that your custom directory name will not allow jailbreaks (../) !
471
        // Take care that your custom directory name will not allow jailbreaks (../) !
472
        public function getDirectoryName() {
472
        public function getDirectoryName() {
473
                return $this->getDefaultDirectoryName();
-
 
474
        }
-
 
475
 
-
 
476
        public final function getDefaultDirectoryName() {
-
 
477
                if ($this->isRoot()) return $this->ns();
473
                if ($this->isRoot()) return $this->ns();
-
 
474
                return $this->getLegacyDirectoryName();
-
 
475
        }
478
 
476
 
-
 
477
        public final function getLegacyDirectoryName() {
479
                if ($this::ns() == 'oid') {
478
                if ($this::ns() == 'oid') {
480
                        $oid = $this->nodeId(false);
479
                        $oid = $this->nodeId(false);
481
                } else {
480
                } else {
482
                        $oid = null;
481
                        $oid = null;
483
                        $alt_ids = $this->getAltIds();
482
                        $alt_ids = $this->getAltIds();