* @package wombat */ include_once '../factoryLoader.php'; wbFactory::configure(); $tm =& wbFactory::singleton( 'wbTicket' ); $data = array( 'type' => 'info', // 'status' => 'new', 'title' => 'FYI', 'message' => 'Look! The sun is shingin\'', // 'link' => array( 'app' => 'Login/Password','foo' => 'bar' ) ); $id = $tm->create( $data ); echo "
\n"; print_r( $tm->getData() ); echo "
\n"; $tm->assign( 1 ); // $tm->assign( 0 ); $tm->addRcpt( 1 ); $tm->addRcpt( 2 ); $tm->addRcpt( 3 ); $tm->addRcpt( 1 ); $tm->removeRcpt( 2 ); $rcpts = $tm->getRcpts(); echo "
\n"; print_r( $rcpts ); echo "
\n"; $tm->addComment( 2, 'Such a nice day and I\'m sitting in front of the screen. Damn' ); $tm->addComment( 1, 'Me too!' ); $tm->addComment( 2, 'Me three!' ); $tm->addComment( 1, 'The good news is that we are allowed to sit in front of the screen at bad weather, as well :-)' ); $cmd = $tm->getComments(); echo "
\n"; print_r( $cmd ); echo "
\n"; // $tm->delete(); /* $tickets = $tm->getTickets(); echo "
\n"; print_r( $tickets ); echo "
\n"; $tickets = $tm->getTickets4Rcpt( 1 ); echo "
\n"; print_r( $tickets ); echo "
\n"; $tickets = $tm->getTicketList( ); echo "
\n"; print_r( $tickets ); echo "
\n"; */ wbDebugger::printMsg(); ?>