Location: PHPKode > projects > PhpBlock > A9.8/modules/basicfog/imageupdate.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";
include_once $PATH_TO_CODE."/modules/basicfog/basicfogfactory.class.php";

class BasicFogUpdate extends DefaultUpdate {
    public function __construct($parArguments, $parPlayer) {
        parent::__construct($parArguments, $parPlayer, "default");
    }

    protected function getRequestToGetModifiedObject($parTime, $locBlockIdsWhereClauseList, $locWhereListForNewBlocks) {
        $locAllianceId = $this->player->allianceId;

        $locRequestToGetModifiedObject = "SELECT object.objectId
        FROM object LEFT JOIN fowBlockSeeByAlliance USING (blockId)
        WHERE fowBlockSeeByAlliance.allianceId=$locAllianceId
        AND object.isBackground=0 AND (visibleState=".RealObject::$REAL_OBJECT_VISIBLE_STATE_VISIBLE_BY_ALL." OR object.allianceId=$locAllianceId) AND
            (
                (
                        object.timestamp >= $parTime
                    AND object.blockId IN $locBlockIdsWhereClauseList
                )";
        if($locWhereListForNewBlocks) {
            $locRequestToGetModifiedObject .= " OR object.blockId IN $locWhereListForNewBlocks";
        }
        $locRequestToGetModifiedObject .= " )";
        return $locRequestToGetModifiedObject;
    }
}
?>
Return current item: PhpBlock