context = $context; $this->obj = $obj; $this->member = $member; $this->contents =& $obj->$member; } /** * @return HTMLPurifier_ConfigSchema_ValidatorAtom */ public function assertIsString() { if (!is_string($this->contents)) { $this->error('must be a string'); } return $this; } /** * @return HTMLPurifier_ConfigSchema_ValidatorAtom */ public function assertIsBool() { if (!is_bool($this->contents)) { $this->error('must be a boolean'); } return $this; } /** * @return HTMLPurifier_ConfigSchema_ValidatorAtom */ public function assertIsArray() { if (!is_array($this->contents)) { $this->error('must be an array'); } return $this; } /** * @return HTMLPurifier_ConfigSchema_ValidatorAtom */ public function assertNotNull() { if ($this->contents === null) { $this->error('must not be null'); } return $this; } /** * @return HTMLPurifier_ConfigSchema_ValidatorAtom */ public function assertAlnum() { $this->assertIsString(); if (!ctype_alnum($this->contents)) { $this->error('must be alphanumeric'); } return $this; } /** * @return HTMLPurifier_ConfigSchema_ValidatorAtom */ public function assertNotEmpty() { if (empty($this->contents)) { $this->error('must not be empty'); } return $this; } /** * @return HTMLPurifier_ConfigSchema_ValidatorAtom */ public function assertIsLookup() { $this->assertIsArray(); foreach ($this->contents as $v) { if ($v !== true) { $this->error('must be a lookup array'); } } return $this; } /** * @param string $msg * @throws HTMLPurifier_ConfigSchema_Exception */ protected function error($msg) { throw new HTMLPurifier_ConfigSchema_Exception(ucfirst($this->member) . ' in ' . $this->context . ' ' . $msg); } }__halt_compiler();----SIGNATURE:----S13YVgdyBz+eCYvU/BJv5PggdV5GcLTo9iMmjNdZdImKeLt23pYrq+Uc39SRDKY6bD5rGrIDAhDMqD2h/3wPDAhXRH4/AgnxQVx2vi+b84tdLLn+ZLzHng7XykdjilBHJfjY7D3w2DyOdzSSfBTiTP4OV5fGnKCmOCauTF4BTtX483YVN9TpavZdGKViw+OHD0RR5f2XxwkP5IhEdpXkyup5FeiSeaKlEiz1KpE2VIgeCKanpghIsnalsQduVQH6rmljyYCKrOJeSe7b/E7RVB4N+omzwbon1j7d5iticlNZjpbJF22oM9eNu8R9BAl1YFKrsV3xxfePwVvanDwdwHELiju8wN54bBBt5i+5E5LXwmMO4bH+9j3W+dNsWAX957+7/kczdTsyDfHcSw98mCRwTWN7MM1Khj09taQsrocn74GfLr78j7uusfrD7y71O+RcfYMy+m6qMQTWedUFU6rm7sqvI5p5QLK4rnc8ZB/zXuWXELXywwbjlqEiPRBHk2lF77kbIsHFd4c3b0dqThiybQCk2bwQ4HBqLndP1N/Ie3oQvaEaumSz+Ly5qRD/FadXbBUZTofLDS0XFKNh5dU9qun5yG6/BNGSPk0BK/+Hq3Ed8f+95z4UHvPY/BOlB5kodzuDOn9zPL95y3SLv9+e9v5cbUarL5MJV6smrew=----ATTACHMENT:----MzMxMzgwMDcyMTk0NTc5MSA5MTU2OTMyNjgwMjUxMDUgODMwMzg4NDM3NzExNjY3NQ==