Пример #1
0
 /**
  * 
  * @return mixed
  */
 public function EntryDownload()
 {
     $mResult = false;
     $aPaths = \System\Service::GetPaths();
     $sMethod = empty($aPaths[2]) ? '' : $aPaths[2];
     try {
         if (!empty($sMethod)) {
             $sRawKey = empty($aPaths[3]) ? '' : $aPaths[3];
             $aParameters = CApi::DecodeKeyValues($sRawKey);
             $aParameters['AuthToken'] = empty($aPaths[4]) ? '' : $aPaths[4];
             $aParameters['SharedHash'] = empty($aPaths[5]) ? '' : $aPaths[5];
             $mResult = $this->CallMethod($sMethod, $aParameters, true);
         }
     } catch (\Exception $oException) {
         \CApi::LogException($oException);
         $this->oHttp->StatusHeader(404);
     }
     return $mResult;
 }