prepare ($sql); $sth->bindParam (':id', $note, PDO::PARAM_INT); $sth->execute (); $array = $sth->fetchAll (PDO::FETCH_ASSOC); foreach ($array as $key => $item) $array [$key]['date'] = strftime ('%x %X', $item ['date']); $message->save (); return json_encode ($array); } catch (PDOException $e) { $message->addWarning ($e->getMessage ()); } $message->save (); return '[]'; } public function showMessages () { $message = Message::singleton (); if (!is_object ($message) || !$message->has ()) return FALSE; $str = ''; while ($msg = $message->get ()) $str .= $msg; $msgs = &XOAD_HTML::getElementById ('labelMessage'); $msgs->innerHTML = '
'. $str .'
'; $message->clear (); return TRUE; } public function delay () { sleep (1); } public function xoadGetMeta() { $methods = get_class_methods ($this); XOAD_Client::mapMethods ($this, $methods); XOAD_Client::publicMethods ($this, $methods); XOAD_Client::privateMethods ($this, array ()); } } ?>