createFolder() abstract public method

Create a new folder.
abstract public createFolder ( string $folder, string $type = null ) : null
$folder string The path of the folder to create.
$type string An optional type for the folder.
return null
示例#1
0
文件: Log.php 项目: raz0rsdge/horde
 /**
  * Create a new folder.
  *
  * @param string $folder The path of the folder to create.
  * @param string $type   An optional type for the folder.
  *
  * @return NULL
  */
 public function createFolder($folder, $type = null)
 {
     $this->_logger->debug(sprintf('Creating folder %s.', $folder));
     $result = $this->_manipulation->createFolder($folder, $type);
     $this->_logger->debug(sprintf('Successfully created folder %s [type: %s].', $folder, $type));
 }