Location: PHPKode > projects > PhpBlock > A9.8/modules/dungeon/update/playerblocklistupdate.class.php
<?php
include_once $PATH_TO_CODE."/script/connect.php";
include_once $PATH_TO_CODE."/script/fonction.php";
include_once $PATH_TO_CODE."/script/update/abstractupdate.class.php";

class PlayerBlockListUpdate extends AbstractUpdate {
    public function __construct($parArguments, $parPlayer) {
        parent::__construct($parArguments, $parPlayer, "playerblocklist");
    }

    public function echoUpdate() {
    	if($this->getOptions("ask", false)) {
	        $this->echoOptionNameOpen();
			$locArrayOfBlock = Block::getAllBlocks($this->player->playerId);
			foreach ($locArrayOfBlock as $locBlock) {
				echo $locBlock->blockId;
				echo Constante::$SEP_URL_3;
				echo count($locBlock->getAllZoneIdOfZoneType(DungeonConstante::$ZONE_TYPE_GOLD_EXPLOITED));
				echo Constante::$SEP_URL_3;
				echo ($locBlock->isInLostOfControl()? "1":"0");
				echo Constante::$SEP_URL_3;
				echo Constante::$SEP_URL_2;
				//Separator for each block
				echo Constante::$SEP_URL_1;
			}
			$this->echoOptionNameClose();
    	}
    }
}
?>
Return current item: PhpBlock