Skip to content

Commit

Permalink
Update teamdetails v3.7
Browse files Browse the repository at this point in the history
Add isDeactivated on senior team
  • Loading branch information
jetwitaussi committed Sep 18, 2024
1 parent d67e718 commit c4fb8fa
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion PHT/Config/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class Version
const STAFFAVATARS = '1.1';
const STAFFLIST = '1.2';
const SUPPORTERS = '1.0';
const TEAMDETAILS = '3.6';
const TEAMDETAILS = '3.7';
const TOURNAMENTDETAILS = '1.0';
const TOURNAMENTFIXTURES = '1.0';
const TOURNAMENTLEAGUETABLES = '1.1';
Expand Down
13 changes: 13 additions & 0 deletions PHT/Xml/Team/Senior.php
Original file line number Diff line number Diff line change
Expand Up @@ -941,6 +941,19 @@ public function isDeleted()
return $this->getXml()->getElementsByTagName('Team')->length == 0;
}

/**
* Return if team is deactivated
*
* @return boolean
*/
public function isDeactivated()
{
if ($this->isDeleted()) {
return true;
}
return strtolower($this->getXml()->getElementsByTagName('IsDeactivated')->item(0)->nodeValue) == 'true';
}

/**
* Return if team is primary team
*
Expand Down

0 comments on commit c4fb8fa

Please sign in to comment.