コード例 #1
0
 public function __construct($request, $response) 
 {/*{{{*/
     $request->callbacktype = CallCenterApiFaculty::SPTYPE_TINET;
     parent::__construct($request, $response);
     $ioFaculty = new IOFaculty();
     $this->ioLogRecorder = new IOLogRecorder($this->logFileName, $ioFaculty->run(IOFaculty::TYPE_JSON));
 }/*}}}*/
コード例 #2
0
 public function __construct($request, $response) 
 {/*{{{*/
     $confLogPath = PhoneConferenceClient::getInstance()->getConfLogPath();
     $this->logFileName = $confLogPath."huaweiconfcallback-".XDateTime::now()->toStringByFormat('Ymd').".log";
     $ioFaculty = new IOFaculty();
     $this->ioLogRecorder = new IOLogRecorder($this->logFileName, $ioFaculty->run(IOFaculty::TYPE_XML));
 }/*}}}*/
コード例 #3
0
    public function __construct($request, $response)
    {/*{{{*/
        $ioFaculty = new IOFaculty();
        $this->IOConverter = $ioFaculty->run(self::IO_TYPE); 
        $this->logFileName = "/tmp/voipcallback-".XDateTime::now()->toStringByFormat('Ymd').".log";
        $this->logTxt = "-------------------------------------------------------------- \n";
        $this->logTxt .= XDateTime::now()->toString()."<---\n".print_r($request, true);

        $this->voipApi = new CloopenVoipApi();
    }/*}}}*/
コード例 #4
0
    public function __construct($request, $response) 
    {/*{{{*/
        $ioFaculty = new IOFaculty();
        $this->IOConverter = $ioFaculty->run(IOFaculty::TYPE_XML); 
        $response->confLogPath = PhoneConferenceClient::getInstance()->getConfLogPath();

        $items = '';
        if ($request instanceof Request && CallCenterApiFaculty::SPTYPE_CLOUD != $request->callbacktype)
        {
            $arr = $request->getAllRequest();
            $items = $this->getLogStr($arr);
        }
        else
        {
            $items =  file_get_contents("php://input");
            $items = preg_replace("/<S.* \/>/","",$items);
            $items = $this->getLogStr(XString::xmlToArray($items));
        }
        $this->logTxt .= XDateTime::now()->toString().$items."\n";
        $this->setCallBack($request->callbacktype, $response);
    }/*}}}*/