isDefault() 공개 메소드

Indicates if this is a default folder.
public isDefault ( ) : boolean
리턴 boolean True if it is a default folder.
예제 #1
0
파일: Data.php 프로젝트: horde/horde
 /**
  * Prepare an array representing the folder data.
  *
  * @return array The folder data.
  */
 public function toArray()
 {
     return array('folder' => $this->_path, 'type' => $this->_type->getType(), 'default' => $this->_type->isDefault(), 'owner' => $this->_namespace->getOwner($this->_path), 'name' => $this->_namespace->getTitle($this->_path), 'subpath' => $this->_namespace->getSubpath($this->_path), 'parent' => $this->_namespace->getParent($this->_path), 'namespace' => $this->_namespace->matchNamespace($this->_path)->getType(), 'prefix' => $this->_namespace->matchNamespace($this->_path)->getName(), 'delimiter' => $this->_namespace->matchNamespace($this->_path)->getDelimiter());
 }
예제 #2
0
 public function testNoDefault()
 {
     $type = new Horde_Kolab_Storage_Folder_Type('contact');
     $this->assertFalse($type->isDefault());
 }