This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /** * WootID represents the unique ID of a WootChar, and consists of two * integers: siteID and charID. SiteID is given to a client by the server, * and charID is constructed by the client via a counter representing * the number of inserts it's done in a given WootDocument. */ WootID::$IDB = new WootID(-1, -1); WootID::$IDE = new WootID(-2, -2); class WootID { /** @var int siteID */ public $siteID; /** @var int charID */ public $charID; public static $IDB; public static $IDE; public function __construct($siteID, $charID) { $this->siteID = $siteID; $this->charID = $charID; } public function getSiteID() {