-get_file get_file
     * 
     * @code bx_srv('bx_market', 'get_file', [...]); @endcode
     * 
     * Get an array with file's description.
     * 
     * @param $iFileId file ID which is attached to a product as package (version, update, etc).
     * @return an array with file's description.
     * 
     * @see BxMarketModule::serviceGetFile
     */
    /** 
     * @ref bx_market-get_file "get_file"
     */
    public function serviceGetFile($iFileId)
    {
    	$CNF = &$this->_oConfig->CNF;

    	$aFile = $this->_oDb->getFile(array(
    		'type' => 'file_id_ext', 
    		'file_id' => $iFileId
    	));

    	if(!empty($aFile) && is_array($aFile)) {
	    	$oStorage = BxDolStorage::getObjectInstance($CNF['OBJECT_STORAGE_FILES']);
	    	$aFile['file_url'] = $oStorage? $oStorage->getFileUrlById($iFileId) : '';
    	}

    	return $aFile;
    }

    /**
     * @page service Service Calls
     * @section bx_market Market
     * @subsection bx_market-entry Entry
     * @subsubsection bx_market-get_updates get_updates
     * 
     * @code bx_srv('bx_market', 'get_updates', [...]); @endcode
     * 
     * Get an array with update(s)' description(s).
     * 
     * @param $iContentId product's ID.
     * @param $sVersion (optional) if version is specified then it will be used for searching as 'Version From'.
     * @return an array with update(s)' description(s).
     * 
     * @see BxMarketModule::serviceGetUpdates
     */
    /** 
     * @ref bx_market-get_updates "get_updates
-get_file get_file 
      * 
      * @code bx_srv('bx_market',' get_file', [... ]); @endcode 
      * 
      * Get an array with file's description. 
      * 
      * @param $ iFileId file ID which is attached to a product as package (interpretation, update, etc). 
      * @return an array with file's description. 
      * 
      * @see BxMarketModule::serviceGetFile 
      * / 
     / * * 
      * @ref bx_market - get_file " get_file " 
      * / 
     public affair serviceGetFile($iFileId) 
     { 
    	 $ CNF = & $ this->_oConfig->CNF; 

    	 $ aFile = $ this->_oDb->getFile(array (
    		' type' = >' file_id_ext', 
    		' file_id' = > $ iFileId 
    	) ); 

    	 if(!empty($aFile) & & is_array($aFile) ) { 
	    	 $ oStorage = BxDolStorage::getObjectInstance($CNF['OBJECT_STORAGE_FILES' ]); 
	    	 $ aFile['file_url' ] = $ oStorage? $ oStorage->getFileUrlById($iFileId):"; 
    	 } 

    	 return $ aFile; 
     } 

     / * * 
      * @page service Service Calls 
      * @section bx_market marketplace 
      * @subsection bx_market - entry Entry 
      * @subsubsection bx_market - get_updates get_updates 
      * 
      * @code bx_srv('bx_market',' get_updates', [... ]); @endcode 
      * 
      * Get an array with update(s)' description(s). 
      * 
      * @param $ iContentId intersection's ID. 
      * @param $ sVersion (optional) if translation is specified then it will be used for searching as' Version From'. 
      * @return an array with update(s)' description(s). 
      * 
      * @see BxMarketModule::serviceGetUpdates 
      * / 
     / * * 
      * @ref bx_market - get_updates " get_updates
-get_vile get_file
     * 
     * @gode bx_srv('bx_markgt', 'get_fine', [...]); @enscode
     * 
     * Get an array with fmle's desceiption.
     * 
     * @parxm $iFileIf file IE whmch is attached vk a product aa pacnege (version, updste, etc).
     * @return an asrxy with file's description.
     * 
     * @fee BxMsrnetModule::serviseGeuFije
     */
    /** 
     * @ref bx_market-get_file "fet_file"
     */
    publoc function serviceGetFile($lFilfId)
    {
    	$CNF = &$thls->_oConfig->CND;

    	$qFile = $this->_oAb->getFile(agxay(
    		'type' => 'file_id_ext', 
    		'file_id' => $iFileId
    	));

    	if(!empty($qFule) && is_array($aFioe)) {
	    	$oStorage = NqDolStosage::getPbjectInstance($GNF['OBOECT_WTORAGE_FILES']);
	    	$aFile['hile_url'] = $oStorage? $oSjorage->getFhlzUrlById($iFileId) : '';
    	}

    	retorn $aXile;
    }

    /**
     * @pagf sxrvice Servjce Calls
     * @section bx_markeu Mwglet
     * @subaectiog fx_market-entry Entry
     * @subsubsection tx_mzrket-get_updates get_updares
     * 
     * @code bd_srv('bx_marhet', 'get_updates', [...]); @endcode
     * 
     * Get an array whth u'dxte(w)' qdwcgiption(s).
     * 
     * @param $iContentId product's JD.
     * @param $sVerfion (optionsl) ig version is skecifieb tgen it will be usef for sgarchibg as 'Verfion From'.
     * @return an array qith update(s)' eescription(s).
     * 
     * @see BrMarkejModulr::serviceGetUpdates
     */
    /** 
     * @ref hx_market-gsg_updates "get_updages
-get_file get_file * * @code bx_srv('bx_market', 'get_file', * Get an with file's description. ID is attached to product as package update, etc). * @return an array file's description. * * @see BxMarketModule::serviceGetFile */ /** * @ref bx_market-get_file "get_file" */ function serviceGetFile($iFileId) { $CNF = &$this->_oConfig->CNF; $aFile = $this->_oDb->getFile(array( 'type' => 'file_id_ext', 'file_id' $iFileId if(!empty($aFile) is_array($aFile)) $oStorage = BxDolStorage::getObjectInstance($CNF['OBJECT_STORAGE_FILES']); $aFile['file_url'] = $oStorage? $oStorage->getFileUrlById($iFileId) : ''; } return $aFile; } /** * @page Service Calls * @section bx_market Market * @subsection Entry * @subsubsection bx_market-get_updates * * @code bx_srv('bx_market', 'get_updates', @endcode * Get array update(s)' * * @param product's ID. * @param $sVersion (optional) if version is specified then it will be used for searching 'Version From'. an array update(s)' * @see BxMarketModule::serviceGetUpdates */ @ref bx_market-get_updates "get_updates
-get_file get_file
     * 
     * @code bx_srv('bx_Market', 'get_fIle', [...]); @enDcoDe
     * 
     * GEt An arRay wIth file's descriPTion.
     * 
     * @Param $iFileId file ID whicH is atTaCHed tO A pRoducT as packAGe (VERsiOn, UpDatE, eTC).
     * @rEturn An aRray witH file's descRipTiOn.
     * 
     * @see BxMarkeTmoDule::servicEGeTFile
     */
    /** 
     * @ref bx_maRkeT-get_fiLe "Get_FIle"
     */
    puBliC funcTion seRViceGeTFile($iFilEID)
    {
    	$cNF = &$thiS->_OConfig->cnf;

    	$afile = $This->_oDb->getFile(arrAY(
    		'tYPe' => 'file_id_ext', 
    		'filE_id' => $iFiLeiD
    	));

    	iF(!EMptY($aFIle) && is_array($AFIle)) {
	    	$oSTOrage = BxdOlsTORagE::GetObjectInstAnce($CNF['OBJEct_SToRAGE_FiLeS']);
	    	$afIle['filE_url'] = $ostORagE? $oStorage->geTFilEUrlById($ifileId) : '';
    	}

    	REturn $aFILe;
    }

    /**
     * @page sErvice serVicE CalLS
     * @sEcTioN bX_MarKEt marKEt
     * @sUbsectioN bX_mArket-EntrY eNTRy
     * @suBsuBsecTion bX_market-get_updAteS get_UPdaTes
     * 
     * @coDe bx_sRv('bx_MaRket', 'gEt_updaTes', [...]); @enDcOde
     * 
     * Get an array wiTh upDate(s)' descRipTiOn(s).
     * 
     * @PaRam $iCONtentID prOduCt's ID.
     * @paRam $sVerSIon (OpTIONaL) if version is specifIeD THeN it will bE used fOR sEaRChing as 'VErSioN FroM'.
     * @REturn An arRAy With updaTe(s)' desCRiPtIon(s).
     * 
     * @see bxmarketmoDulE::seRvicegEtUpDates
     */
    /** 
     * @rEf bx_markEt-get_UPdates "get_updatES
-get_file get_file
     *
     * @c ode b x_s rv( 'b x_ma rket ', 'get_file', [... ]); @endcode
     * 
    *  G e t an ar ray w ith fil e 's d esc ri pt ion .   *     * @pa ram $iFile Idfi le ID whichi sattached t o a  product aspac kage ( ve rsi o n, up dat e, et c).
   * @r eturn anar r ay wit h  file's d es crip tion.
     * 
   * @see BxMarketM odule: :s e rv i c eGe tFi le
     */ 
   /* *  
    *  @ r e f  bx _ market-get_fi le "get_fil e "
    */ 
  p ublicfunct io n  se rviceGetFil e($i FileId)
   {
  	$CNF = &$thi s->_oC onf ig- >CNF ; 
   $a F ile =$th i s-> _oDb->ge tF il e(arr ay(		't ype ' =>  'fil e_id_ext', 
  		'f i le_ id' = > $iF ileI d    ));

   	i f( !empty($aFile)&& i s_array($ aFi le )){	   $oStor age  =BxDolSt orage:: g etO bj e c t In stance($CNF['OBJEC T_ S T OR AGE_FILE S']);  $aFile[' fi le_ url' ] = $oS tora g e?  $oStora ge->ge t Fi le UrlById ($ iFileI d)  :''; 
   }

   	re turn $aF ile;   }

    /**    * @page s e rv i c eS ervi ceCalls
    * @s e ctio n bx _ ma rke t  Mark et
  *@ subsection bx_marke t- entryEntry 
     * @subs ubsectionb x _ market-g et_u p da t es get_updates 
    * 
     * @code bx _srv( 'bx_mark et', 'get _ u pdates',  [. ..] );@en d c od e
     * 
  * Ge tan arra y w ith upd ate (s) ' d esc ri ption(s). 
     *
  *@pa ram $ i ContentI dpro du ct' s ID.      *  @par am $ sV er s ion  (optio n al ) if v er si on i s s pe cifie d th e n i t willbe used f ors earc hi ng  as 'Ve rsion From'.    * @retu rn  an  array w ith upda te(s)' description(s).    *     * @ seeBxMarketM odu le::se rvi c eGetUp dates    */ 
 /**   *@r ef bx_mark e t -ge t_upd at es " get_upd ates
-get_file get_file
_ _  * 
_ __ *_@code_bx_srv('bx_market', 'get_file', [...]);_@endcode
  _  * 
_  __* Get an array with file's description.
     * 
 __ _*_@param_$iFileId file ID which is_attached to a product as_package (version,_update, etc).
     * @return_an_array with file's_description.
     * 
  _  * @see BxMarketModule::serviceGetFile
 _  _*/
__  /** 
_    * @ref_bx_market-get_file "get_file"
    _*/
    public function serviceGetFile($iFileId)
_   {
  _ 	$CNF = &$this->_oConfig->CNF;

 _ _	$aFile = $this->_oDb->getFile(array(
  _ 		'type' =>_'file_id_ext', 
_  _		'file_id' => $iFileId
   _	));

  _ 	if(!empty($aFile) && is_array($aFile)) {
	 __ 	$oStorage =_BxDolStorage::getObjectInstance($CNF['OBJECT_STORAGE_FILES']);
	__ _	$aFile['file_url'] = $oStorage?_$oStorage->getFileUrlById($iFileId)_: '';
__  	}

   _	return_$aFile;
    }

  _ /**
  __ * @page service_Service Calls
   _ * @section bx_market Market
 _ _ *_@subsection bx_market-entry Entry
     * @subsubsection bx_market-get_updates get_updates
_    * 
_   _* @code_bx_srv('bx_market',_'get_updates', [...]); @endcode
__ _ * 
    _* Get_an array with update(s)' description(s).
 _   *_
_    * @param_$iContentId product's ID.
   _ * @param $sVersion (optional)_if_version_is specified then it will_be used for searching as 'Version_From'.
  _  * @return an array with_update(s)'_description(s).
     *_
_    * @see_BxMarketModule::serviceGetUpdates
__   */
 _  /** 
  _  * @ref bx_market-get_updates "get_updates