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


PHP Family::getFamilyMemberAttributes方法代码示例

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


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

示例1: loadFamilyMembers

 private function loadFamilyMembers()
 {
     $xml = null;
     $this->prevFamilyMembers = array();
     if ($this->isGedcomPage) {
         $dataString = GedcomUtil::getGedcomDataString();
         if ($dataString) {
             $xml = simplexml_load_string($dataString);
         }
     } else {
         $revision = StructuredData::getRevision($this->title);
         if ($revision) {
             $content =& $revision->getText();
             $xml = StructuredData::getXml('family', $content);
         }
     }
     if (isset($xml)) {
         foreach ($xml->husband as $member) {
             $title = (string) $member['title'];
             $this->prevFamilyMembers[$title] = Family::getFamilyMemberAttributes($member);
         }
         foreach ($xml->wife as $member) {
             $title = (string) $member['title'];
             $this->prevFamilyMembers[$title] = Family::getFamilyMemberAttributes($member);
         }
         foreach ($xml->child as $member) {
             $title = (string) $member['title'];
             $this->prevFamilyMembers[$title] = Family::getFamilyMemberAttributes($member);
         }
     }
 }
开发者ID:k-hasan-19,项目名称:wiki,代码行数:31,代码来源:Family.php

示例2: loadPages

 private function loadPages()
 {
     $this->prevPeople = array();
     $this->prevFamilies = array();
     $revision = StructuredData::getRevision($this->title);
     if ($revision) {
         $content =& $revision->getText();
         $xml = StructuredData::getXml($this->tagName, $content);
         if (isset($xml)) {
             foreach ($xml->person as $person) {
                 $title = (string) $person['title'];
                 $this->prevPeople[$title] = Family::getFamilyMemberAttributes($person);
             }
             foreach ($xml->family as $family) {
                 $title = (string) $family['title'];
                 $this->prevFamilies[$title] = array();
             }
         }
     }
 }
开发者ID:k-hasan-19,项目名称:wiki,代码行数:20,代码来源:SDImage.php


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