diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-07-12 17:08:13 +0400 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-07-12 17:08:13 +0400 |
commit | 01378e19072b89c33af85a8a12a37f6c898e0941 (patch) | |
tree | 3454866ce19b9fc5eb48c7c3bf632bb767afb3d1 /apps/files_external/3rdparty/irodsphp/prods/src/packet/RP_InxIvalPair.class.php | |
parent | 481bb831bb898399a01495fb6d3b07ca44a02f17 (diff) |
incorporate development branch of ssh://irodsguest@code.renci.org/gitroot/irodsphp
Diffstat (limited to 'apps/files_external/3rdparty/irodsphp/prods/src/packet/RP_InxIvalPair.class.php')
-rw-r--r-- | apps/files_external/3rdparty/irodsphp/prods/src/packet/RP_InxIvalPair.class.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/apps/files_external/3rdparty/irodsphp/prods/src/packet/RP_InxIvalPair.class.php b/apps/files_external/3rdparty/irodsphp/prods/src/packet/RP_InxIvalPair.class.php new file mode 100644 index 00000000000..ac56bc93df8 --- /dev/null +++ b/apps/files_external/3rdparty/irodsphp/prods/src/packet/RP_InxIvalPair.class.php @@ -0,0 +1,27 @@ +<?php + +require_once(dirname(__FILE__) . "/../autoload.inc.php"); +class RP_InxIvalPair extends RODSPacket +{ + public function __construct($iiLen = 0, array $inx = array(), array $ivalue = array()) + { + $packlets = array("iiLen" => $iiLen, 'inx' => $inx, 'ivalue' => $ivalue); + parent::__construct("InxIvalPair_PI", $packlets); + } + + public function fromAssocArray($array) + { + if (!empty($array)) { + $this->packlets["iiLen"] = count($array); + $this->packlets["inx"] = array_keys($array); + $this->packlets["ivalue"] = array_values($array); + } else { + $this->packlets["iiLen"] = 0; + $this->packlets["inx"] = array(); + $this->packlets["ivalue"] = array(); + } + } + +} + +?>
\ No newline at end of file |