当前位置: 首页>>代码示例>>PHP>>正文


PHP Folder::getURI方法代码示例

本文整理汇总了PHP中Folder::getURI方法的典型用法代码示例。如果您正苦于以下问题:PHP Folder::getURI方法的具体用法?PHP Folder::getURI怎么用?PHP Folder::getURI使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Folder的用法示例。


在下文中一共展示了Folder::getURI方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * Constructor
  *
  * @param   io.Folder folder
  * @throws  lang.IllegalArgumentException if the given folder does not exist
  */
 public function __construct(Folder $folder)
 {
     if (!$folder->exists()) {
         throw new IllegalArgumentException('Folder "' . $folder->getURI() . '" does not exist!');
     }
     $this->folder = $folder;
 }
开发者ID:Gamepay,项目名称:xp-framework,代码行数:13,代码来源:FolderSource.class.php

示例2: cleanupSessionSavePath

 public static function cleanupSessionSavePath()
 {
     $f = new Folder(session_save_path());
     while ($e = $f->getEntry()) {
         if (0 === strncmp('sess_', $e, 5)) {
             unlink($f->getURI() . $e);
         }
     }
 }
开发者ID:Gamepay,项目名称:xp-framework,代码行数:9,代码来源:HttpSessionTest.class.php

示例3: getFolder

 /**
  * Opens a subfolder of the current folder and returns
  * an object of that mailbox.
  *
  * @param   string foldername
  * @return  peer.mail.MailFolder folder;
  */
 public function getFolder($name)
 {
     $f = new Folder($this->_folder->getURI() . DIRECTORY_SEPARATOR . $name);
     if (!$f->exists()) {
         throw new MessagingException('Maildir does not exist: ' . $f->getURI());
     }
     $mf = new MailFolder($this, $name);
     return $mf;
 }
开发者ID:Gamepay,项目名称:xp-framework,代码行数:16,代码来源:MaildirStore.class.php

示例4: setBase

 /**
  * Gets base folder
  *
  * @param   io.Folder
  */
 public function setBase(Folder $base)
 {
     $this->base = new Folder($base, '..');
     // Scan base path. FIXME: Refactor this to use lang.ClassLoader
     // instead of duplication its sourcecode here
     foreach (array_filter(explode(PATH_SEPARATOR, scanpath(array($base->getURI()), getenv('HOME')))) as $element) {
         $resolved = realpath($element);
         if (is_dir($resolved)) {
             $this->cl[] = FileSystemClassLoader::instanceFor($resolved, FALSE);
         } else {
             if (is_file($resolved)) {
                 $this->cl[] = ArchiveClassLoader::instanceFor($resolved, FALSE);
             }
         }
     }
 }
开发者ID:Gamepay,项目名称:xp-framework,代码行数:21,代码来源:Installation.class.php

示例5: pathClassCanBeUsedAsArg

 public function pathClassCanBeUsedAsArg()
 {
     $f = new Folder(new Path($this->temp));
     $this->assertEquals($this->temp, $f->getURI());
 }
开发者ID:xp-framework,项目名称:core,代码行数:5,代码来源:FolderTest.class.php

示例6: parentDirectory

 public function parentDirectory()
 {
     $f = new Folder('..');
     $this->assertEquals($this->normalize(realpath('..')), $f->getURI());
 }
开发者ID:Gamepay,项目名称:xp-framework,代码行数:5,代码来源:FolderTest.class.php

示例7: rooted_folder

 public function rooted_folder()
 {
     $rooted = new Folder('/rooted');
     $this->assertEquals(substr($rooted->getURI(), 0, -1), (new Path($rooted))->toString());
 }
开发者ID:xp-framework,项目名称:core,代码行数:5,代码来源:PathTest.class.php


注:本文中的Folder::getURI方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。