/**
  * Init Ranks
  *
  * @return $this
  */
 private function initRanks()
 {
     /** @var RoosterMember $member */
     foreach ($this->member as $member) {
         $rankId = $member->getRankIndex();
         if (!isset($this->ranks[(int) $rankId])) {
             $guildRank = new GuildRank(array());
             $this->ranks[(int) $rankId] = $guildRank;
             $guildRank->setName($this->rankHeadings->__get('rank_' . ($rankId + 1)));
             $guildRank->setIsText($this->rankHeadings->__get('rank_is_image_' . ($rankId + 1)) == 1);
         }
         $this->ranks[(int) $rankId]->addMember($member);
     }
     return $this;
 }
 /**
  * @see    \cms\system\content\type\IContentType::getOutput()
  */
 public function getOutput(Content $content)
 {
     $memberList = new MemberList(array());
     $memberList->setRealm($content->__get('realm'));
     $memberList->setGuild($content->__get('guild'));
     $memberList->setKey($content->__get('key'));
     $memberList->setLocal($content->__get('local'));
     $memberList->setGuildRankPrefix($content->__get('guildrank'));
     $memberList->setMemberBackground($content->__get('memberbackground'));
     $memberList->setRankHeadings($content);
     $memberList->setBackgroundPicture($content->__get('picture'));
     $memberList->setHordeOrAlliance($content->__get('hordeOrAlliance'));
     return $memberList->render();
 }