ips = $ips; return; } public function setWords($words = array()) { /*check the array first */ $this->words = $words; return; } private function checkIps() { /* creates an array with ips, split with , */ return true; } private function checkWords() { /* creates an array with ips, split with , if found return true*/ return true; } public function saveLog() { switch ($this->saveType) { case 'xml': break; default: break; } } public function fetchLogs($template = null) { if ($template) { $xmldata = new SimpleXMLElement($this->saveFile, null, true); /* create replace array */ foreach ($xmldata->fields->xpath('//field') as $replacements) { $replacelog[] = '<#='.$replacements.'#>'; } /* make an array of the logs */ foreach ($xmldata->logs->xpath('//log') as $xmllog) { $logs[] = $xmllog; } /* reverse logs so newest comes first */ $logs = array_reverse($logs); } else { return array(); } } } ?>