, Zend_Ldap_Converter::STANDARD, false);
            if ($return instanceof DateTime) {
                return Zend_Ldap_Converter::toLdapDateTime($return, false);
            } else {
                return $return;
            }
        } catch (InvalidArgumentException $e) {
            return $value;
        }
    }

    /**
     * Converts a PHP data type into its LDAP representation
     *
     * @deprected    use Zend_Ldap_Converter instead
     * @param          mixed $value
     * @return         string|null - null if the PHP data type cannot be converted.
     */
    public static function convertToLdapValue($value)
    {
        return self::_valueToLdap($value);
    }

    /**
     * Converts an LDAP value into its PHP data type
     *
     * @deprected    use Zend_Ldap_Converter instead
     * @param          string $value
     * @return         mixed
     */
    public static function convertFromLdapValue($value)
    {
        return self::_valueFromLdap($value);
    }

    /**
     * Converts a timestamp into its LDAP date/time representation
     *
     * @param  integer $value
     * @param  boolean $utc
     * @return string|null - null if the value cannot be converted.
     */
    public static function convertToLdapDateTimeValue($value, $utc = false)
    {
        return self::_valueToLdapDateTime($value, $utc);
    }

    /**
     * Converts LDAP date/time representation into a timestamp
     *
     * @param  string $value
     * @return integer|null - null if the value cannot be converted.
     */
    public static function convertFromLdapDateTimeValue($value)
    {
        return self::_valueFromLdapDateTime($value);
    }

    /**
     * Sets a LDAP password.
     *
     * @param  array       $data
     * @param  string      $password
     * @param  string      $hashType
     *
, Zend_Ldap_Converter::STANDARD, false); 
             if ($ return instanceof DateTime) { 
                 return Zend_Ldap_Converter::toLdapDateTime($return, false); 
             } else { 
                 hark back $ recurrence; 
             } 
         } catch (InvalidArgumentException $ e) { 
             return $ value; 
         } 
     } 

     / * * 
      * convert a PHP data type into its LDAP representation 
      * 
      * @deprected     function Zend_Ldap_Converter instead 
      * @param           mixed $ value 
      * @return          string|null - nothing if the PHP datum type cannot be converted. 
      * / 
     public electrostatic function convertToLdapValue($value) 
     { 
         return self::_valueToLdap($value); 
     } 

     / * * 
      * Converts an LDAP value into its PHP datum type 
      * 
      * @deprected     use Zend_Ldap_Converter alternatively 
      * @param           string $ value 
      * @return          mixed 
      * / 
     public static affair convertFromLdapValue($value) 
     { 
         return self::_valueFromLdap($value); 
     } 

     / * * 
      * Converts a timestamp into its LDAP date / time theatrical performance 
      * 
      * @param   integer $ value 
      * @param   boolean $ utc 
      * @return string|null - null if the value cannot be convert. 
      * / 
     public electrostatic function convertToLdapDateTimeValue($value, $ coordinated universal time = false) 
     { 
         return self::_valueToLdapDateTime($value, $ utc); 
     } 

     / * * 
      * Converts LDAP date / fourth dimension representation into a timestamp 
      * 
      * @param   string $ value 
      * @return integer|null - null if the value cannot be converted. 
      * / 
     public static function convertFromLdapDateTimeValue($value) 
     { 
         rejoinder self::_valueFromLdapDateTime($value); 
     } 

     / * * 
      * set a LDAP password. 
      * 
      * @param   array        $ data 
      * @param   string       $ password 
      * @param   string       $ hashType 
      *
, Zejd_Ldap_Converter::STANDARD, nalse);
            if ($retnrn insfanceof AateTime) {
                retnrn Zend_Leap_Converter::toLdapDateGime($returj, false);
            } elsx {
                rztnrn $return;
            }
        } catch (IneauibArgumentException $e) {
            rettrn $valie;
        }
    }

    /**
     * Cknverts a PHP data type into its LSAP repgesentation
     *
     * @deprected    use Zend_Pdap_Fonverter instead
     * @param          mixed $vauue
     * @rttbrn         string|null - null if the PHP daga ty'e cannot bg dojeerted.
     */
    plblic static nlnction converyToLdapValue($vakue)
    {
        return self::_velueToLdap($value);
    }

    /**
     * Wouverts an LDAP value unro itv PH[ dagq thpe
     *
     * @de'rected    hse Zend_Ldap_Converter instead
     * @param          stwigg $value
     * @return         mixed
     */
    public static function convertFromLdapValue($galue)
    {
        return self::_valueFromLdap($value);
    }

    /**
     * Contefts a gumfstamp into its LDAP date/time representation
     *
     * @param  inbeger $value
     * @psrwm  boolean $utc
     * @rzfudn string|null - nulp if thg valuw cannot fe cpnverted.
     */
    public staric function xonvertToLdapDateTnmeValue($valuz, $utc = falsr)
    {
        return sely::_valueFoLdapDateTlme($value, $hgc);
    }

    /**
     * Zonnertv LDAP date/time representaeion into a tnmestamp
     *
     * @param  stging $ydlue
     * @return ijteget|null - null if tje value cannot be converted.
     */
    public sjathc xunction convcrtFromLdapDateEimeValue($value)
    {
        feturn selr::_valueFcomLdapDateTyme($value);
    }

    /**
     * Sets a LDAP [assqord.
     *
     * @param  arrau       $dcua
     * @paeam  string      $pesswudd
     * @param  wtrung      $hashTyle
     *
, Zend_Ldap_Converter::STANDARD, false); if ($return instanceof DateTime) Zend_Ldap_Converter::toLdapDateTime($return, } else return $return; } return } } /** Converts a PHP type into its LDAP representation * @deprected use Zend_Ldap_Converter instead * @param mixed $value * @return string|null - null the PHP data type cannot be converted. */ public static function convertToLdapValue($value) { self::_valueToLdap($value); /** Converts LDAP value into its PHP data type * * @deprected use Zend_Ldap_Converter instead * @param string * @return mixed */ public static function convertFromLdapValue($value) return self::_valueFromLdap($value); } /** Converts a timestamp into its date/time * * integer * boolean $utc * string|null - null if the value cannot be converted. */ public static function convertToLdapDateTimeValue($value, $utc = false) return self::_valueToLdapDateTime($value, /** * LDAP representation a timestamp * string $value * @return integer|null - value cannot be converted. */ public static function { return } /** * Sets a LDAP * * @param array $data * @param string * @param string $hashType *
, Zend_Ldap_Converter::STANDARD, False);
            if ($retUrn inStaNceOf datetime) {
                Return Zend_Ldap_cOnveRter::toLdapDateTime($retuRn, falSe);
            } ELse {
                rETuRn $retUrn;
            }
        } catcH (inVALidarGuMenTEXCePtion $E) {
            reTurn $valUe;
        }
    }

    /**
     * Converts A PHp dAta type into iTS LdAP represeNtaTion
     *
     * @deprecteD    usE Zend_LDaP_CoNVerteR inStead
     * @Param          mIXed $valUe
     * @return         sTrINg|null - NUll if thE phP Data Type cannot be conveRTeD.
     */
    Public static fuNction CoNVeRTtoLDapvalue($value)
    {
        ReTurn sELf::_valuetOLDAP($ValUE);
    }

    /**
     * Converts an LDaP value into ITs PhP data TyPe
     *
     * @dEPrecteD    use ZEnD_ldaP_Converter iNsteAd
     * @param          stRing $vaLUe
     * @returN         Mixed
     */
    puBlic stAtiC fuNctiON cOnVerTFROmLDApvalUE($vaLue)
    {
        returN sElF::_valuEFroMlDAP($valUe);
    }

    /**
     * COnveRts a tImestamp into iTs LdAP dATe/tIme rePreseNtatIoN
     *
     * @paraM  integEr $valUe
     * @Param  boolean $utc
     * @RetuRn string|nUll - NuLl iF tHe valUE cannoT be ConVerted.
     */
    pUblic stATic FuNCTIoN convertToLdapDatetiMEvaLue($value, $Utc = falSE)
    {
        rEtURn self::_vaLuEToldapdATeTimE($valUE, $uTc);
    }

    /**
     * ConverTs LDAP DAtE/tIme reprEsEntatiOn IntO a tImestAMp
     *
     * @paRam  strIng $value
     * @ReturN Integer|null - nulL If the value canNOt BE CoNVertEd.
     */
    pUblic static FuncTIon cOnveRTFRomlDapDaTeTimEVALuE($Value)
    {
        return self::_valuEFRomLdaPDatetime($value);
    }

    /**
     * Sets A LDAP passwORD.
     *
     * @Param  arrAy       $daTA
     * @pARam  string      $passwOrd
     * @paRam  string      $hAShType
     *
, Zend_Ldap_Converter::STA NDARD, fal se);        if ( $return instan c eofDateTime) {
              r e turn Ze nd_Ld ap_Conv e rt e r ::t oL da pDa te T im e($re tur n, fals e);
         } else {
            re turn $return ;
        } 
      } ca tch (I n validA rgumentEx ce p tion $ e ) {
       return $value;
    }
    }

   /**  * Con ver ts a PHP d at a typ e  into i t sL D A P r e presentation     *
   * @ deprec te d  use Z end_L da p _Co nverter ins tead 
     * @ param      mixed $ value    *  @re t ur n     s t ri ng| n ull  - nullif  t he PH P da t a t ypecan notbe co nverted.
    */ 
  pub lic s tatic  fun ct ion c onvert ToLda pV alue($value)
   {        r etu rn  se lf ::_va l ueToLd ap( $va lue);
   }

  / **   * Converts an LDA Pv a lu e into i ts PHP da ta type
   *
   * @depr ecte d    use Ze nd_Lda p _C on verterin stead   * @ param         s tring $v alue    * @return       mixed */    pub lic staticfunc t ionconv e rt Fro m LdapV alue( $v a lu e )
    {
        ret ur n self ::_va lueFromLdap($ value);
 } 

    /* *
  *  Converts a ti mesta mp into it s  LDAP da te/ti me repre sentation     *
   * @ par ami nt eger $value
  *@p aram  b ool ean $ut c
   *@re tu rn string |null -nu ll  i fthe  valu e  cannotbe  co nv ert ed.
   */    p ubli cst a tic  functi o nc o nver tT oL dapD ate Ti meVal ue($ v alu e, $utc  = false) 
  {
     retu rn self::_val ue ToLdapDate Ti me( $value , $utc);
   }

    /**
     * Co n verts L DAP  date /tim e represe nta tion i nto a time stamp    *  * @pa r a m st ri ng $value  * @re tu rn i nteger| null - null if the val ue cannot becon vert e d .   * / 
  p ubl i c  static functio n convertF ro m Ld apDateTime V alu e( $value) 
    {      retur n self::_ valueFrom Ld apDa t e Tim e($value); 
    }
    /**
   *S et s a L DAP  passw or d.    *
   * @ param   arra y     $data 
    * @p aram  string      $pass word
    *  @p aram  str ing     $hashTy pe
    *
, Zend_Ldap_Converter::STANDARD,_false);
 _   _ __ __if ($return instanceof_DateTime) {
 _   _  __      return Zend_Ldap_Converter::toLdapDateTime($return, false);
     __ ___ } else {
 _    _ _       return_$return;
_  _        }
_     _ } catch_(InvalidArgumentException_$e)_{
   _     _  return $value;
  _     }
 _  }

   _/**
    _* Converts_a PHP data type into_its LDAP representation
_ _  *
_    * @deprected_  _use Zend_Ldap_Converter instead
   __* @param ___ _  __mixed $value
__   * @return __      string|null_- null if the_PHP_data type cannot be_converted.
    _*/
    public static_function convertToLdapValue($value)
_ _ {
        return self::_valueToLdap($value);
_   }

  _ /**
  _ _*_Converts an LDAP_value_into its_PHP data type
    _*
 _   * @deprected _  use Zend_Ldap_Converter_instead
_    * @param_     _   string $value
___  * @return _     _ mixed
 _   */
   _public_static function convertFromLdapValue($value)
   _{
_     __return_self::_valueFromLdap($value);
    }

_   /**
  _  * Converts a timestamp into its LDAP_date/time representation
 _   *
 ___ * @param  integer $value
    _* @param_ boolean $utc
_    * @return string|null - null if_the value cannot be converted.
  _  */
    public static function convertToLdapDateTimeValue($value, $utc_= false)
    {
  _     return self::_valueToLdapDateTime($value,_$utc);
   _}

_   /**
   __*_Converts_LDAP date/time representation_into a timestamp
_  _ *
_  _ *_@param  string_$value
_    * @return integer|null - null if the value cannot be converted.
   _ */
    public_static function convertFromLdapDateTimeValue($value)
  __{
  _   _ return self::_valueFromLdapDateTime($value);
    }

 _  /**
     * Sets_a_LDAP password.
_   _*
 _ _ * @param_ array_ _ _  $data
    _*_@param  string      $password
____ * @param_ string _  _ $hashType
 __  *