protected function _arrayToTime($array)
    {
        $time = array_key_exists('H', $array) &&
                trim($array['H']) != '' &&
                array_key_exists('i', $array) &&
                trim($array['i']) != '';

        if (! $time) {
            return;
        }

        $s = array_key_exists('s', $array) && trim($array['s']) != ''
           ? $array['s']
           : '00';

        return $array['H'] . ':'
             . $array['i'] . ':'
             . $s;
    }
protected function _arrayToTime($array)
    {
        $time = array_key_exists('H', $array) &&
                trim($array['H']) != '' &&
                array_key_exists('i', $array) &&
                trim($array['i']) != '';

        if (! $time) {
            return;
        }

        $s = array_key_exists('s', $array) && trim($array['s']) != ''
           ? $array['s']
           : '00';

        return $array['H'] . ':'
             . $array['i'] . ':'
             . $s;
    }
protected function _arrayToTime ( $ array ) { $ time = array_key_exists ( 'H' , $ array ) && trim ( $ array [ 'H' ] ) != '' && array_key_exists ( 'i' , $ array ) && trim ( $ array [ 'i' ] ) != '' ; if ( ! $ time ) { return ; } $ s = array_key_exists ( 's' , $ array ) && trim ( $ array [ 's' ] ) != '' ? $ array [ 's' ] : '00' ; return $ array [ 'H' ] . ':' . $ array [ 'i' ] . ':' . $ s ; }
Converts an array of time parts to a string time.

@param array The array of time parts.
@return string
Converts an array of time parts to a string time .