コード例 #1
0
ファイル: ListEntry.php プロジェクト: hybridneo/zendgdata
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('gCal') . ':' . 'accesslevel':
             $accessLevel = new Extension\AccessLevel();
             $accessLevel->transferFromDOM($child);
             $this->_accessLevel = $accessLevel;
             break;
         case $this->lookupNamespace('gCal') . ':' . 'color':
             $color = new Extension\Color();
             $color->transferFromDOM($child);
             $this->_color = $color;
             break;
         case $this->lookupNamespace('gCal') . ':' . 'hidden':
             $hidden = new Extension\Hidden();
             $hidden->transferFromDOM($child);
             $this->_hidden = $hidden;
             break;
         case $this->lookupNamespace('gCal') . ':' . 'selected':
             $selected = new Extension\Selected();
             $selected->transferFromDOM($child);
             $this->_selected = $selected;
             break;
         case $this->lookupNamespace('gCal') . ':' . 'timezone':
             $timezone = new Extension\Timezone();
             $timezone->transferFromDOM($child);
             $this->_timezone = $timezone;
             break;
         case $this->lookupNamespace('gd') . ':' . 'where':
             $where = new \ZendGData\Extension\Where();
             $where->transferFromDOM($child);
             $this->_where[] = $where;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }