- /**
- * XXX
- *
- * @param $list<Feature> XXX
- * @return void XXX
- * @access public
- */
- public function setFeatures($list<Feature>) {
- trigger_error('Not Implemented!', E_USER_WARNING);
- }
+ /**
+ * XXX
+ *
+ * @param $list<Feature> XXX
+ * @return void XXX
+ * @access public
+ */
+ public function setFeatures($list) {
+ trigger_error('Not Implemented!', E_USER_WARNING);
+ }
+
+ /**
+ * Get all Snapshot properties from commandline and update object properties attribute
+ *
+ * @return void
+ * @access private
+ */
+ private function updateAllProperties() {
+ $cmd = "zfs get -H all " . $this->name;
+ $this->exec($cmd,$out,$res);
+ unset($this->properties);
+ foreach ($out as $line) {
+ $tmpary = preg_split('/\t+/', $line);
+ $this->properties["$tmpary[1]"] = array("value" => $tmpary[2], "source" => $tmpary[3]);
+ }
+ }