当前位置: 首页>>代码示例>>PHP>>正文


PHP Entry::takeChildFromDOM方法代码示例

本文整理汇总了PHP中Zend\GData\Entry::takeChildFromDOM方法的典型用法代码示例。如果您正苦于以下问题:PHP Entry::takeChildFromDOM方法的具体用法?PHP Entry::takeChildFromDOM怎么用?PHP Entry::takeChildFromDOM使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Zend\GData\Entry的用法示例。


在下文中一共展示了Entry::takeChildFromDOM方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: takeChildFromDOM

 protected function takeChildFromDOM($child)
 {
     switch ($child->namespaceURI) {
         case $this->lookupNamespace('gsx'):
             $custom = new Extension\Custom($child->localName);
             $custom->transferFromDOM($child);
             $this->addCustom($custom);
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
开发者ID:robertodormepoco,项目名称:zf2,代码行数:13,代码来源:ListEntry.php

示例2: takeChildFromDOM

 /**
  * Creates individual Entry objects of the appropriate type and
  * stores them as members of this entry based upon DOM data.
  *
  * @param DOMNode $child The DOMNode to process
  */
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('exif') . ':' . 'tags':
             $tags = new Extension\Tags();
             $tags->transferFromDOM($child);
             $this->_tags = $tags;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
开发者ID:robertodormepoco,项目名称:zf2,代码行数:20,代码来源:Entry.php

示例3: takeChildFromDOM

 /**
  * Creates individual Entry objects of the appropriate type and
  * stores them as members of this entry based upon DOM data.
  *
  * @param DOMNode $child The DOMNode to process
  */
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('apps') . ':' . 'property':
             $property = new Extension\Property();
             $property->transferFromDOM($child);
             $this->_property[] = $property;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
开发者ID:robertodormepoco,项目名称:zf2,代码行数:20,代码来源:GroupEntry.php

示例4: takeChildFromDOM

 /**
  * Creates individual Entry objects of the appropriate type and
  * stores them as members of this entry based upon DOM data.
  *
  * @param DOMNode $child The DOMNode to process
  */
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('gphoto') . ':' . 'weight':
             $weight = new Extension\Weight();
             $weight->transferFromDOM($child);
             $this->_gphotoWeight = $weight;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
开发者ID:robertodormepoco,项目名称:zf2,代码行数:20,代码来源:TagEntry.php

示例5: takeChildFromDOM

 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('georss') . ':' . 'where':
             $where = new Extension\GeoRssWhere();
             $where->transferFromDOM($child);
             $this->_where = $where;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
开发者ID:bradley-holt,项目名称:zf2,代码行数:14,代码来源:Entry.php

示例6: takeChildFromDOM

 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('gs') . ':' . 'cell':
             $cell = new Extension\Cell();
             $cell->transferFromDOM($child);
             $this->_cell = $cell;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
开发者ID:rexmac,项目名称:zf2,代码行数:14,代码来源:CellEntry.php

示例7: takeChildFromDOM

 /**
  * @param DOMElement $child
  * @return void
  */
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('ga') . ':' . 'dimension':
             $dimension = new Extension\Dimension();
             $dimension->transferFromDOM($child);
             $this->_dimensions[] = $dimension;
             break;
         case $this->lookupNamespace('ga') . ':' . 'metric':
             $metric = new Extension\Metric();
             $metric->transferFromDOM($child);
             $this->_metrics[] = $metric;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
开发者ID:navassouza,项目名称:zf2,代码行数:23,代码来源:DataEntry.php

示例8: takeChildFromDOM

 /**
  * Creates individual Entry objects of the appropriate type and
  * stores them in the $_entry array based upon DOM data.
  *
  * @param DOMNode $child The DOMNode to process
  */
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('gs') . ':' . 'rowCount':
             $rowCount = new Extension\RowCount();
             $rowCount->transferFromDOM($child);
             $this->_rowCount = $rowCount;
             break;
         case $this->lookupNamespace('gs') . ':' . 'colCount':
             $colCount = new Extension\ColCount();
             $colCount->transferFromDOM($child);
             $this->_colCount = $colCount;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
开发者ID:robertodormepoco,项目名称:zf2,代码行数:25,代码来源:WorksheetEntry.php

示例9: takeChildFromDOM

 /**
  * @param DOMElement $child
  * @return void
  */
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('ga') . ':' . 'property':
             $property = new Extension\Property();
             $property->transferFromDOM($child);
             $this->{$property->getName()} = $property;
             break;
         case $this->lookupNamespace('ga') . ':' . 'tableId':
             $tableId = new Extension\TableId();
             $tableId->transferFromDOM($child);
             $this->_tableId = $tableId;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
开发者ID:navassouza,项目名称:zf2,代码行数:23,代码来源:AccountEntry.php

示例10: takeChildFromDOM

 /**
  * Creates individual Entry objects of the appropriate type and
  * stores them in the $_entry array based upon DOM data.
  *
  * @param DOMNode $child The DOMNode to process
  */
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('yt') . ':' . 'description':
             $description = new Extension\Description();
             $description->transferFromDOM($child);
             $this->_description = $description;
             break;
         case $this->lookupNamespace('yt') . ':' . 'countHint':
             $countHint = new Extension\CountHint();
             $countHint->transferFromDOM($child);
             $this->_countHint = $countHint;
             break;
         case $this->lookupNamespace('yt') . ':' . 'playlistId':
             $playlistId = new Extension\PlaylistId();
             $playlistId->transferFromDOM($child);
             $this->_playlistId = $playlistId;
             break;
         case $this->lookupNamespace('gd') . ':' . 'feedLink':
             $feedLink = new \Zend\GData\Extension\FeedLink();
             $feedLink->transferFromDOM($child);
             $this->_feedLink[] = $feedLink;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
开发者ID:alab1001101,项目名称:zf2,代码行数:35,代码来源:PlaylistListEntry.php

示例11: takeChildFromDOM

 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('gd') . ':' . 'where':
             $where = new \Zend\GData\Extension\Where();
             $where->transferFromDOM($child);
             $this->_where[] = $where;
             break;
         case $this->lookupNamespace('gd') . ':' . 'when':
             $when = new \Zend\GData\Extension\When();
             $when->transferFromDOM($child);
             $this->_when[] = $when;
             break;
         case $this->lookupNamespace('gd') . ':' . 'who':
             $who = new \Zend\GData\Extension\Who();
             $who->transferFromDOM($child);
             $this->_who[] = $who;
             break;
         case $this->lookupNamespace('gd') . ':' . 'recurrence':
             $recurrence = new \Zend\GData\Extension\Recurrence();
             $recurrence->transferFromDOM($child);
             $this->_recurrence = $recurrence;
             break;
         case $this->lookupNamespace('gd') . ':' . 'eventStatus':
             $eventStatus = new \Zend\GData\Extension\EventStatus();
             $eventStatus->transferFromDOM($child);
             $this->_eventStatus = $eventStatus;
             break;
         case $this->lookupNamespace('gd') . ':' . 'comments':
             $comments = new \Zend\GData\Extension\Comments();
             $comments->transferFromDOM($child);
             $this->_comments = $comments;
             break;
         case $this->lookupNamespace('gd') . ':' . 'transparency':
             $transparency = new \Zend\GData\Extension\Transparency();
             $transparency->transferFromDOM($child);
             $this->_transparency = $transparency;
             break;
         case $this->lookupNamespace('gd') . ':' . 'visibility':
             $visiblity = new \Zend\GData\Extension\Visibility();
             $visiblity->transferFromDOM($child);
             $this->_visibility = $visiblity;
             break;
         case $this->lookupNamespace('gd') . ':' . 'recurrenceException':
             $recurrenceException = new \Zend\GData\Extension\RecurrenceException();
             $recurrenceException->transferFromDOM($child);
             $this->_recurrenceException[] = $recurrenceException;
             break;
         case $this->lookupNamespace('gd') . ':' . 'originalEvent':
             $originalEvent = new \Zend\GData\Extension\OriginalEvent();
             $originalEvent->transferFromDOM($child);
             $this->_originalEvent = $originalEvent;
             break;
         case $this->lookupNamespace('gd') . ':' . 'extendedProperty':
             $extProp = new \Zend\GData\Extension\ExtendedProperty();
             $extProp->transferFromDOM($child);
             $this->_extendedProperty[] = $extProp;
             break;
         case $this->lookupNamespace('gd') . ':' . 'entryLink':
             $entryLink = new \Zend\GData\Extension\EntryLink();
             $entryLink->transferFromDOM($child);
             $this->_entryLink = $entryLink;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
开发者ID:navassouza,项目名称:zf2,代码行数:69,代码来源:EventEntry.php

示例12: takeChildFromDOM

 /**
  * Creates individual Entry objects of the appropriate type and
  * stores them in the $_entry array based upon DOM data.
  *
  * @param DOMNode $child The DOMNode to process
  */
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
     case $this->lookupNamespace('gd') . ':' . 'feedLink':
         $feedLink = new \Zend\GData\Extension\FeedLink();
         $feedLink->transferFromDOM($child);
         $this->_feedLink[] = $feedLink;
         break;
     case $this->lookupNamespace('media') . ':' . 'thumbnail':
         $mediaThumbnail = new \Zend\GData\Media\Extension\MediaThumbnail();
         $mediaThumbnail->transferFromDOM($child);
         $this->_mediaThumbnail = $mediaThumbnail;
         break;
     case $this->lookupNamespace('yt') . ':' . 'countHint':
         $countHint = new Extension\CountHint();
         $countHint->transferFromDOM($child);
         $this->_countHint = $countHint;
         break;
     case $this->lookupNamespace('yt') . ':' . 'playlistTitle':
         $playlistTitle = new Extension\PlaylistTitle();
         $playlistTitle->transferFromDOM($child);
         $this->_playlistTitle = $playlistTitle;
         break;
     case $this->lookupNamespace('yt') . ':' . 'playlistId':
         $playlistId = new Extension\PlaylistId();
         $playlistId->transferFromDOM($child);
         $this->_playlistId = $playlistId;
         break;
     case $this->lookupNamespace('yt') . ':' . 'queryString':
         $queryString = new Extension\QueryString();
         $queryString->transferFromDOM($child);
         $this->_queryString = $queryString;
         break;
     case $this->lookupNamespace('yt') . ':' . 'username':
         $username = new Extension\Username();
         $username->transferFromDOM($child);
         $this->_username = $username;
         break;
     default:
         parent::takeChildFromDOM($child);
         break;
     }
 }
开发者ID:niallmccrudden,项目名称:zf2,代码行数:50,代码来源:SubscriptionEntry.php

示例13: takeChildFromDOM

 /**
  * Creates individual Entry objects of the appropriate type and
  * stores them as members of this entry based upon DOM data.
  *
  * @param DOMNode $child The DOMNode to process
  */
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('yt') . ':' . 'videoid':
             $videoId = new Extension\VideoId();
             $videoId->transferFromDOM($child);
             $this->_videoId = $videoId;
             break;
         case $this->lookupNamespace('yt') . ':' . 'username':
             $username = new Extension\Username();
             $username->transferFromDOM($child);
             $this->_username = $username;
             break;
         case $this->lookupNamespace('gd') . ':' . 'rating':
             $rating = new \Zend\GData\Extension\Rating();
             $rating->transferFromDOM($child);
             $this->_rating = $rating;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
开发者ID:bradley-holt,项目名称:zf2,代码行数:30,代码来源:ActivityEntry.php

示例14: takeChildFromDOM

 /**
  * Creates individual Entry objects of the appropriate type and
  * stores them as members of this entry based upon DOM data.
  *
  * @param DOMNode $child The DOMNode to process
  */
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     if (strstr($absoluteNodeName, $this->lookupNamespace('g') . ':')) {
         $baseAttribute = new Extension\BaseAttribute();
         $baseAttribute->transferFromDOM($child);
         $this->_baseAttributes[] = $baseAttribute;
     } else {
         parent::takeChildFromDOM($child);
     }
 }
开发者ID:alab1001101,项目名称:zf2,代码行数:17,代码来源:Entry.php

示例15: takeChildFromDOM

    /**
     * Creates individual Entry objects of the appropriate type and
     * stores them as members of this entry based upon DOM data.
     *
     * @param DOMNode $child The DOMNode to process
     */
    protected function takeChildFromDOM($child)
    {
        $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;

        switch ($absoluteNodeName) {
            case $this->lookupNamespace('gAcl') . ':' . 'role';
                $role = new Extension\ACLRole();
                $role->transferFromDOM($child);
                $this->_role = $role;
                break;
            case $this->lookupNamespace('gAcl') . ':' . 'scope';
                $scope = new Extension\ACLScope();
                $scope->transferFromDOM($child);
                $this->_scope = $scope;
                break;
            default:
                parent::takeChildFromDOM($child);
                break;
        }
    }
开发者ID:rickogden,项目名称:zf2,代码行数:26,代码来源:ACLEntry.php


注:本文中的Zend\GData\Entry::takeChildFromDOM方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。