예제 #1
0
 public function setValue($value)
 {
     if (null !== $value and !$value instanceof parent) {
         $this->_value = parent::parse($value);
     } else {
         $this->_value = $value;
     }
     $this->_asDom = null;
     $this->_asXml = null;
 }
예제 #2
0
 public function setValue($value)
 {
     if (is_array($value)) {
         $this->_value = array();
         foreach ($value as $key => $el) {
             if (!$el instanceof parent) {
                 $this->_value[$key] = parent::parse($el);
             } else {
                 $this->_value[$key] = $el;
             }
         }
     }
     $this->_asXml = null;
     $this->_asDom = null;
     return $this;
 }
예제 #3
0
 public function testXmlElementKeyIsInternallyRestricted()
 {
     $this->setExpectedException('Zend_Service_SecondLife_Value_Exception');
     Zend_Service_SecondLife_Value::fromXml('<key>foo</key>');
 }
예제 #4
0
 protected function _parseResponse($response)
 {
     require_once 'Zend/Service/SecondLife/Value.php';
     $value = Zend_Service_SecondLife_Value::fromXml($response)->getValue();
     return $value;
 }