* @package Wombat * @subpackage Ticket System */ WBClass::load('WBAjax' , 'WBITS_Ticket'); /** * AJAX component WBAjax_ITS_Ticket * * * @version 0.1.0 * @package Wombat * @subpackage Ticket System */ class WBAjax_ITS_Ticket extends WBAjax { /** * @var WBITS_Ticket */ private $ticket; /** * 2nd construcotr * * Called by constructer of super class. * * @see include/WB/WBAjax#init() */ protected function init() { $this->ticket = WBClass::create('WBITS_Ticket'); } /** * Pre-Generate Ticket Id * * @return string */ public function pregenerate() { $data = $this->ticket->pregenerate(); return $data['obscureid']; } }