* @package wombat */ include_once '../factoryLoader.php'; wbFactory::configure(); $tm =& wbFactory::singleton( 'wbTicket' ); $data = array( 'type' => 'task', // 'status' => 'new', 'title' => 'Do somethin', '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( 3 ); // $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(); ?>