Пример #1
0
 function testGetName()
 {
     $pBackend = new DAVACL\PrincipalBackend\Mock();
     $cBackend = new Backend\Mock();
     $root = new AddressBookRoot($pBackend, $cBackend);
     $this->assertEquals('addressbooks', $root->getName());
 }
Пример #2
0
 function getName()
 {
     if ($this->principalPrefix === 'principals') {
         return parent::getName();
     }
     // Grabbing all the components of the principal path.
     $parts = explode('/', $this->principalPrefix);
     // We are only interested in the second part.
     return $parts[1];
 }
Пример #3
0
 /**
  * Returns the name of the node
  *
  * @return string
  */
 function getName()
 {
     return parent::getName();
 }