コード例 #1
0
ファイル: SubversionList.php プロジェクト: nequal/Openpear
 protected function __exec__()
 {
     $this->options('xml');
     if (Tag::setof($tag, parent::__exec__()->stdout(), 'list')) {
         $result = array();
         foreach ($tag->in('entry') as $t) {
             $result[] = $t->hash();
         }
         return $result;
     }
     throw new SubversionListException();
 }
コード例 #2
0
ファイル: SubversionLog.php プロジェクト: nequal/Openpear
 protected function __exec__()
 {
     if ($this->is_raw()) {
         return parent::__exec__();
     }
     $this->options('xml');
     $result = array();
     if (Tag::setof($tag, parent::__exec__()->stdout(), 'log')) {
         foreach ($tag->in('logentry') as $logentry) {
             $result[] = $logentry->hash();
         }
         return $result;
     }
     throw new SubversionLogException();
 }
コード例 #3
0
ファイル: Subversion.php プロジェクト: nequal/Openpear
 public static function look($command, $vars = array(), $options = array(), $dict = null)
 {
     return SubversionCommand::look($command, $vars, $options, $dict);
 }
コード例 #4
0
ファイル: SubversionCommand.php プロジェクト: nequal/Openpear
 public static function __import__()
 {
     self::$__cmd_path__ = module_const('cmd_path', '/usr/bin/svn');
     self::$__look_cmd_path__ = module_const('look_cmd_path', '/usr/bin/svnlook');
     self::$_lang_ = module_const('lang', 'ja_JP.UTF-8');
 }