Ejemplo n.º 1
0
 function testGetName()
 {
     $pBackend = new DAVACL\PrincipalBackend\Mock();
     $cBackend = new Backend\Mock();
     $root = new AddressBookRoot($pBackend, $cBackend);
     $this->assertEquals('addressbooks', $root->getName());
 }
Ejemplo n.º 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];
 }
Ejemplo n.º 3
0
 /**
  * Returns the name of the node
  *
  * @return string
  */
 function getName()
 {
     return parent::getName();
 }