crVCL PHP Framework Version 2.9
  • Class
  • Tree
  • Todo
  • Download

Classes

  • _html_Doc
  • array2domxml
  • array2xml
  • cap_str
  • chart
  • chartline
  • config_crvcl_inc
  • Contoller
  • ContollerMain
  • ContollerPage
  • Controller
  • ControllerMain
  • ControllerPage
  • CouchDB
  • crAsync
  • crDateTime
  • CriticalSection
  • crJWT
  • crVCLSessionHandler
  • daemon
  • dictBase
  • domxml2array
  • DTA
  • DTAUS
  • DTAZV
  • ErrorHandler
  • ExceptionHandler
  • ffmpegbin
  • fsock
  • GeoIPLib
  • GoogleAnalyticsParser
  • htaccess
  • html5_Video
  • html_Anchor
  • html_Button
  • html_Calendar
  • html_Checkbox
  • html_ChkListbox
  • html_Choosebox
  • html_CKEditor
  • html_Colorbox
  • html_Combobox
  • html_Component
  • html_ComponentAMP
  • html_Datepicker
  • html_DivTable
  • html_Doc
  • html_DocAMP
  • html_Edit
  • html_Events
  • html_FlvBox
  • html_FocusEvents
  • html_FocusEventsEx
  • html_FoldingBox
  • html_Form
  • html_GroupBox
  • html_iFrame
  • html_Img
  • html_ImgAMP
  • html_InfoBox
  • html_Label
  • html_LinkLabel
  • html_List
  • html_Listbox
  • html_Marquee
  • html_Marquee2
  • html_Memo
  • html_Msgbox
  • html_OpenDialog
  • html_Optionbox
  • html_Panel
  • html_Radiobutton
  • html_Resultbar
  • html_RichText
  • html_Slider
  • html_Spinbutton
  • html_TabbedPane
  • html_TabControl
  • html_Table
  • html_tagCloud
  • html_TinyMCE
  • html_Window
  • http
  • httprequest
  • imap
  • imap_attachment
  • imap_body
  • imap_header
  • imap_msg
  • imgbar
  • Int64
  • JBridge
  • Logger
  • mail
  • multiAjaxHtmlResponse
  • mvc_module_loader
  • MySQL
  • MySQL_
  • MySQLBuilder
  • MySQLLang
  • MySQLResult
  • OpcodeCache
  • PDF
  • process_pid
  • QRCodeMinified
  • Redis
  • RESTful
  • RESTful_Client
  • RESTful_Server
  • RSS
  • rtf
  • sasl
  • sasl_basic
  • sasl_cram_md5
  • sasl_digest
  • sasl_interact
  • sasl_login
  • sasl_ntlm
  • sasl_plain
  • SepaRecord
  • SepaXML
  • SessionHandlerMemcache
  • SessionHandlerMySQL
  • SessionHandlerMySQLi
  • SessionHandlerRedis
  • shm
  • sitemap
  • SocialLib
  • sphinxAPI
  • sphinxQL
  • sphinxQLBuilder
  • sphinxResult
  • SQLiteDB
  • SQLiteDB_
  • SQLiteDBBuilder
  • SQLiteDBResult
  • template
  • TimeTrace
  • Viewer
  • whoisrequest
  • WSThread
  • XDXF_Parser
  • xml2array
  • xmlHelper
  • XMLRPC
  • XMLRPC_Client
  • XMLRPC_Server
  • zipLib

Interfaces

  • html_iComponent
  • icrVCLSessionHandler

Traits

  • html_tComponent

Functions

  • _ISO_Lang_Convert
  • acount
  • add_trailing_slash
  • addAjaxAnswerToElement
  • ajax_callback
  • ajax_request
  • ajax_setFormData2Fragment
  • ajax_setFragment2FormData
  • ajax_translate_special_char
  • Ansi2OEM
  • apache_request_headers
  • apc_opcode_priming_compiler
  • array2js_form_set
  • array2js_from_set
  • Array2strAttribute
  • array2string
  • array2UrlData
  • array_combine_values
  • array_concat
  • array_del
  • array_filelist
  • array_gcd
  • array_insert
  • array_isearch
  • array_key_existsEx
  • array_lcm
  • array_mix
  • array_remove_empty
  • array_search_inner
  • array_search_key
  • array_search_needle
  • array_trim
  • array_xunique
  • ascii_non_visible_decode
  • authcode
  • authenticate
  • average
  • bandwidth2byteInt
  • base64_encode_bin
  • bitInValue
  • bitVal2array
  • boolstr
  • boolToSetting
  • boolval
  • boolvalEx
  • breakpoint_set
  • breakpoint_stop
  • breakpoint_watch
  • browserSupportAjax
  • byte2str
  • calculate_RFC2104HMAC
  • cast_str
  • checkdnsrr
  • checkEmail
  • chrEx
  • cidr_match
  • clearscreen
  • com_create_guid
  • copyEx
  • cpu_get_usage
  • create_menu
  • createVisiblePageRank
  • CRLF_fix
  • cron_scheduling
  • crVCLProfiler
  • cursor_color
  • cursor_down
  • cursor_erase_eol
  • cursor_erase_line
  • cursor_erase_sol
  • cursor_left
  • cursor_pos
  • cursor_restore
  • cursor_right
  • cursor_save
  • cursor_unsave
  • cursor_up
  • data_uri
  • date2MySQLDate
  • date2Timestamp
  • dateFormat
  • dateToMySQLDate
  • debug_backtrace_string
  • debugbreak
  • debugOut
  • DEC2DMS
  • dec2str
  • decryptEx
  • deepCopy
  • defineEx
  • diffDays
  • diffHour
  • diffMin
  • diffSec
  • dir_exists
  • DMS2Array
  • DMS2DEC
  • dns_get_mx
  • download
  • download_authcode_url
  • download_from_authcode
  • download_iframe
  • download_popup
  • enableCORS
  • encryptEx
  • escape_js
  • EU_VAT_Validate
  • even
  • extractFileExt
  • extractFileName
  • file_get_mimetype
  • file_read
  • file_write
  • fileExist
  • filepermsEx
  • firebugOut
  • fix_https
  • fix_session_register
  • fixpath
  • font
  • free
  • ftok
  • fw_exception_error_handler
  • fw_mvc_reset_component_changed
  • fwErrorHandler
  • fwExceptionHandler
  • gc_collect_cycles_overX
  • gcd
  • get_browserEx
  • get_defined_constantsEx
  • get_file_from_url
  • get_include_contents
  • get_Post_RAW_Data
  • get_profiler_info
  • getAlexaPageRank
  • getallheadersEx
  • getallheadersSize
  • getBrowser
  • getClientLanguage
  • getCountryList
  • getEthnicList
  • getFrameworkCSS
  • getFrameworkJS
  • getGooglePageRank
  • getLanguageList
  • getMonthList
  • getOrigin
  • getOS
  • getPHP_OS
  • getPHP_Version
  • getProxyInfo
  • getQuarter
  • getRealIp
  • getScript
  • getScriptPath
  • getServer
  • getSTDIN
  • getSubdomain
  • gettickcount
  • getURL
  • getURLPath
  • getWeekdayList
  • googleCH
  • googleTranslator
  • GUID
  • guidEx
  • gzdecodeEx
  • header_cache
  • header_http_error
  • header_nocache
  • hex2rgb
  • hex2str
  • html2text
  • html_entity_decode
  • htmldecode
  • http
  • httpAuth
  • https
  • imagick_fingerprint
  • in_arrayEx
  • iniBuffer2BlockArray
  • iniRead
  • iniWrite
  • interval
  • intval32
  • is_base64_encoded
  • is_bin
  • is_crawler
  • is_date
  • is_https
  • is_IE
  • is_mobile
  • is_number
  • is_robot
  • is_spider
  • is_ssl
  • is_utf8
  • is_utf8Ex
  • is_windows
  • iso_decode
  • ISOLang2Letter3Letter
  • ISOLang3Letter2Letter
  • issetOr
  • js
  • js_getFormData
  • js_mailto
  • js_removeFormData
  • js_safeEMail
  • JSON_FixDoubleSerialization
  • JSON_FixSingleElementArray
  • lcm
  • left
  • levenshtein_ratio
  • levenshteinEx
  • linefeed_detect
  • luhnCheck
  • marquee
  • mb_str_replace
  • measure
  • mix
  • mount
  • move
  • msgbox
  • mssleep
  • mvc_ajax_event
  • mvc_alert
  • mvc_component_changed
  • mvc_confirmbox
  • mvc_event
  • mvc_flags
  • mvc_prompt
  • mysql_isDateEmpty
  • mysql_isDateSet
  • mysql_SET_isCondition
  • mysql_unix_timestamp
  • MySQLFilter
  • normalize
  • normalize_filename
  • object2array
  • OEM2Ansi
  • optimizeCSS
  • optimizeHTML
  • optimizeJS
  • ordEx
  • parse_include
  • parseCmdPara
  • parseHeaders
  • passwordStrength
  • pcntl_pid_exists
  • phpinfoEx
  • portscan
  • pp
  • pp_xml
  • preg_last_error_msg
  • print_ajax
  • print_br
  • print_chunked
  • print_d
  • print_gz
  • print_pretty
  • print_pretty_xml
  • protocol
  • pwGen
  • quoted_printable_encode
  • random
  • redirect
  • remove_tags
  • request_async
  • reset_last_modified_for_internal_http_cache
  • rgb2hex
  • rgb2hsb
  • rgb2hsv
  • right
  • runExternal
  • rval
  • ScriptProtection
  • sec2str
  • seo_code_to_text_ratio
  • seo_keyword_density
  • seo_page_informations
  • session_clean_user_cookies
  • session_commitEx
  • session_end
  • session_expires
  • session_is_started
  • session_logout
  • setAjaxAnswerToElement
  • setting_sqlite_read
  • setting_sqlite_write
  • showFrameworkError
  • shutdown_function_crVCL_FatalError
  • socket_writeEx
  • space
  • str2bin
  • str2byteInt
  • str2dec
  • str2hex
  • str2sec
  • str_del
  • str_extract
  • str_getAttributeVal
  • str_getCssValue
  • str_parse_tags
  • str_random
  • str_replace_bin
  • str_trim_len
  • strAttribute2Array
  • strax
  • strcut
  • strcut_bin
  • strftimeEx
  • strhtmlformat
  • stricut
  • stricut_bin
  • string2array
  • strip_chars
  • strip_linebreaks
  • strip_spaces
  • stripHTML
  • stripInvalidXml
  • stripos_bin
  • stripWhiteSpace
  • strlen_bin
  • strOrd
  • strpos_bin
  • strpos_next_word
  • strrcut
  • strrcut_bin
  • strricut
  • strricut_bin
  • strripos_bin
  • strrpos_bin
  • strrpos_next_word
  • strtolower_bin
  • strtonum
  • strtoupper_bin
  • strzero
  • strzerocast
  • substr_bin
  • terminal_beep
  • terminal_cols
  • terminal_lines
  • text2html
  • timestamp2MySQLDateTime
  • trim_specialchars
  • trim_text
  • umount
  • unauthorized
  • unicode_array
  • unique_key
  • unix2DosTime
  • unlink_files
  • unpack31
  • unserializeEx
  • unserializeEx_v1
  • unserializeEx_v2
  • unzip
  • urlData2Array
  • utcdate
  • utf8_encodeEx
  • utf8_fix
  • utf8_to_RTF
  • UUID
  • validateEmail
  • var_dumpEx
  • var_dumpExHTML
  • var_name
  • waitForInput
  • wordwarp_detect
  • writeTrace
  • wsthread_exception_error_handler
  • XML2JSON
  • xmlentities
  • xmlentities_decode
  • xmlentitiesEx
  • xmlGetPara
  • xmlGetVal
  • xor32
  • XSSFilter
  • zeroFill
  • zlib_compression

Class CouchDB

$cdb = new CouchDB();
$cdb->m_trace_critical_section_id = "couchdb.trc.crit";
$cdb->m_trace_critical_section_path = $GLOBALS["DOCROOT"]."/temp";
$cdb->m_trace_path = $GLOBALS["DOCROOT"]."/logs";
$cdb->m_trace_delAfter = "10M";

$cdb->connect('cdb1', '192.168.2.16','root','xyz123');
print $cdb->getError('cdb1');

print_d($cdb->getInfo('cdb1'));

Located at couchdb.lib.php

Methods summary

public
# __construct( integer $object_id = 0 )

Parameters

$object_id
as unique object identifier
public
# writeTrace( $s, $add_header_msg = '' )
private Logger &
# getLogger( )

Returns

Logger
private
# setErr( $id, $errint_or_response, $additional_msg = '', $http_code = '200' )
public string
# getError( string $id = "master", boolean $raw = false )

return an error msg, empty string if no error

return an error msg, empty string if no error

Parameters

$id
of db node
$raw
to return JSON answer instead of error string

Returns

string
public
# connect( string $id = "", string $server = "localhost:5984", string $user = null, string $pw = null )

fake connect, required for multible hosts and load balancing

sample:
$cdb = new CouchDB();
$cdb->connect('cdb1', 'localhost');

fake connect, required for multible hosts and load balancing

sample:
$cdb = new CouchDB();
$cdb->connect('cdb1', 'localhost');

Parameters

$id
of db node
$server
$user
$pw
public array
# getInfo( string $id = "master" )

Parameters

$id
of db node

Returns

array
public array
# getStatistics( )

return a array with statistics about request timings

return a array with statistics about request timings

Returns

array
public array
# show_active_tasks( string $id = "master" )

return all active tasks

return all active tasks

Parameters

$id
of db node

Returns

array
public string
# http_request( string $id = "master", string $request = '/', mixed $json_data = '', string $type = null )

send a raw user defined JSON request to a CouchDB host and return a raw JSON response from it

send a raw user defined JSON request to a CouchDB host and return a raw JSON response from it

Parameters

$id
of db node of host
$request
as sample "/_all_dbs"
$json_data
JSON or array as sample for binary like array('content_type'=>'image/jpeg','data'=>$binary);
$type
GET/POST/PUT/DELETE

Returns

string
public array
# show_databases( string $id = "master" )

return all databases

return all databases

Parameters

$id
of db node

Returns

array
public boolean
# create_database( string $id, string $db_name, integer $revs_limit = null )

create a database

create a database

Parameters

$id
of db node
$db_name
$revs_limit
see method setRevsLimit for more

Returns

boolean
public boolean
# setRevsLimit( string $id, string $db_name, integer $limit = 1000 )

to reduce the size of the list of old revisions (limits the number of revisions stored in a database).
By default it is set to 1000.

to reduce the size of the list of old revisions (limits the number of revisions stored in a database).
By default it is set to 1000.

Parameters

$id
of db node
$db_name
$limit

Returns

boolean
public array
# show_database_status( string $id, string $db_name )

show database informations

show database informations

Parameters

$id
of db node
$db_name

Returns

array
public boolean
# drop_database( string $id, string $db_name )

delete a database

delete a database

Parameters

$id
of db node
$db_name

Returns

boolean
private
# parameters( & $parameters = null )
public string
# getLBNodeId( )

return the last used node id

sample:
$cdb->select_rev(null, 'testdb', 'c64263347690285624b135717e034e4a');
if($cdb->getError($cdb->getLBNodeId()) != ''){ print $cdb->getError($cdb->getLBNodeId()); }

return the last used node id

sample:
$cdb->select_rev(null, 'testdb', 'c64263347690285624b135717e034e4a');
if($cdb->getError($cdb->getLBNodeId()) != ''){ print $cdb->getError($cdb->getLBNodeId()); }

Returns

string
private
# getNextLBId( )
public array
# lbSelect_all( string & $id, string $db_name, mixed $parameters = null, boolean $include_docs = false )

select all documents

sample:
$cdb->lbSelect_all($cid, 'testdb', 'descending=true, limit = 100')

select all documents

sample:
$cdb->lbSelect_all($cid, 'testdb', 'descending=true, limit = 100')

Parameters

$id
of db node or null to use load balancing (require php session)
$db_name
$parameters
url parameters as array, url string or comma seperated string
$include_docs

Returns

array
public array
# select_all( string $id, string $db_name, mixed $parameters = null, boolean $include_docs = false )

select all documents

sample:
$cdb->select_all('cdb1', 'testdb', 'descending=true, limit = 100')

select all documents

sample:
$cdb->select_all('cdb1', 'testdb', 'descending=true, limit = 100')

Parameters

$id
of db node
$db_name
$parameters
url parameters as array, url string or comma seperated string
$include_docs

Returns

array
public array
# lbSelect( string & $id, string $db_name, array $keys, mixed $parameters = null, boolean $include_docs = true )

select documents by key

sample:
$cdb->lbSelect($cid, 'testdb', array('c64263347690285624b135717e034b2c', 'c64263347690285624b135717e0345af'), 'descending=true, limit = 100')

select documents by key

sample:
$cdb->lbSelect($cid, 'testdb', array('c64263347690285624b135717e034b2c', 'c64263347690285624b135717e0345af'), 'descending=true, limit = 100')

Parameters

$id
of db node or null to use load balancing (require php session)
$db_name
$keys
like array('c64263347690285624b135717e034b2c', 'c64263347690285624b135717e0345af', ...);
$parameters
url parameters as array, url string or comma seperated string
$include_docs

Returns

array
public array
# select( string $id, string $db_name, array $keys, mixed $parameters = null, boolean $include_docs = true )

select documents by key

sample:
$cdb->select('cdb1', 'testdb', array('c64263347690285624b135717e034b2c', 'c64263347690285624b135717e0345af'), 'descending=true, limit = 100')

select documents by key

sample:
$cdb->select('cdb1', 'testdb', array('c64263347690285624b135717e034b2c', 'c64263347690285624b135717e0345af'), 'descending=true, limit = 100')

Parameters

$id
of db node
$db_name
$keys
like array('c64263347690285624b135717e034b2c', 'c64263347690285624b135717e0345af', ...);
$parameters
url parameters as array, url string or comma seperated string
$include_docs

Returns

array
public array
# lbSelect_rev( string & $id, string $db_name, string $key, boolean $show_revs = false, string $rev = null, mixed $parameters = null, boolean $include_docs,… )

select a single document

sample:
$cdb->lbSelect_rev($cid, 'testdb', 'c64263347690285624b135717e034b2c', true, '18-ba18a8dda1c3484f94c7f150143be8ee')

select a single document

sample:
$cdb->lbSelect_rev($cid, 'testdb', 'c64263347690285624b135717e034b2c', true, '18-ba18a8dda1c3484f94c7f150143be8ee')

Parameters

$id
of db node or null to use load balancing (require php session)
$db_name
$key
$show_revs
$rev
$parameters
url parameters as array, url string or comma seperated string
$include_docs,…

Returns

array
public array
# select_rev( string & $id, string $db_name, string $key, boolean $show_revs = false, string $rev = null, mixed $parameters = null, boolean $include_docs,… )

select a single document

sample:
$cdb->select_rev('cdb1', 'testdb', 'c64263347690285624b135717e034b2c', true, '18-ba18a8dda1c3484f94c7f150143be8ee')

select a single document

sample:
$cdb->select_rev('cdb1', 'testdb', 'c64263347690285624b135717e034b2c', true, '18-ba18a8dda1c3484f94c7f150143be8ee')

Parameters

$id
of db node
$db_name
$key
$show_revs
$rev
$parameters
url parameters as array, url string or comma seperated string
$include_docs,…

Returns

array
public array
# lbView( string & $id, string $db_name, string $design, string $view, mixed $parameters = null )

return a view

sample:
$cdb->lbView($cid, 'testdb', 'users', 'names');

return a view

sample:
$cdb->lbView($cid, 'testdb', 'users', 'names');

Parameters

$id
of db node or null to use load balancing (require php session)
$db_name
$design
$view
$parameters
url parameters as array, url string or comma seperated string

Returns

array
public array
# view( string $id, string $db_name, string $design, string $view, mixed $parameters = null )

return a view

sample:
$cdb->view('cdb1', 'testdb', 'users', 'names');

return a view

sample:
$cdb->view('cdb1', 'testdb', 'users', 'names');

Parameters

$id
of db node
$db_name
$design
$view
$parameters
url parameters as array, url string or comma seperated string

Returns

array
public boolean
# create_views( string $id, string $db_name, string $design, array $views = null, string $language = 'javascript' )

create a view

create a view

Parameters

$id
$db_name
$design
name
$views
like array('all' => array('map'=>'function(doc){ emit(null, doc); }'), 'byName'=>array('map'=>'function(doc){ emit(doc.name, doc); }', 'reduce'=>''))
$language
javascript or coffeescript

Returns

boolean
public array
# show_views( string $id, string $db_name, string $design )

return all views of a database design

return all views of a database design

Parameters

$id
of db node
$db_name
$design
name

Returns

array
public boolean
# drop_view( string $id, string $db_name, string $design, string $rev = null )

delete all views of a database design

delete all views of a database design

Parameters

$id
$db_name
$design
name
$rev
null to select the last revision or document revision to delete

Returns

boolean
public array
# insert( string $id, string $db_name, mixed $data = '' )

insert a new document and return the document related key, revision, id

sample:
$cdb->insert('cdb1', 'testdb', array('date'=>date2MySQLDate()))

insert a new document and return the document related key, revision, id

sample:
$cdb->insert('cdb1', 'testdb', array('date'=>date2MySQLDate()))

Parameters

$id
of db node
$db_name
$data
array like array('Author'=>'Max', 'PostDate'=>'2014-04-08 10:03:22'); or mixed value (will be stored in fieldname "data") or empty string to create an empty document

Returns

array
public array
# update( string $id, string $db_name, string $key_id, mixed $data, string $rev = null )

update a document and return the document related key, revision, id

sample:
$cdb->update('cdb1', 'testdb', 'c64263347690285624b135717e034b2c', array('amount'=>'9.99'), '2-b4d0c1ca7ae4d774bb55efb4b806a1dc');

update a document and return the document related key, revision, id

sample:
$cdb->update('cdb1', 'testdb', 'c64263347690285624b135717e034b2c', array('amount'=>'9.99'), '2-b4d0c1ca7ae4d774bb55efb4b806a1dc');

Parameters

$id
of db node
$db_name
$key_id
document key/id to update
$data
array like array('Author'=>'Max', 'PostDate'=>'2014-04-08 10:03:22'); or mixed value (will be stored in fieldname "data")
$rev
document revision to update or null for last revision

Returns

array
public array
# delete( string $id, string $db_name, string $key_id, string $rev = null )

delete a document and return the document related key, revision, id

sample:
$cdb->delete('cdb1', 'testdb', 'c64263347690285624b135717e0335ea')

delete a document and return the document related key, revision, id

sample:
$cdb->delete('cdb1', 'testdb', 'c64263347690285624b135717e0335ea')

Parameters

$id
of db node
$db_name
$key_id
document key/id to update
$rev
null to select the last revision or document revision to delete

Returns

array
public array
# deleted( string $id, string $db_name, mixed $parameters = null )

show deleted documents

sample:
$cdb->deleted('cdb1', 'testdb')

show deleted documents

sample:
$cdb->deleted('cdb1', 'testdb')

Parameters

$id
of db node
$db_name
$parameters
url parameters as array, url string or comma seperated string

Returns

array
public array
# compact( string $id, string $db_name, mixed $parameters = null )

compaction compresses the disk database file

sample:
$cdb->compact('cdb1', 'testdb')

compaction compresses the disk database file

sample:
$cdb->compact('cdb1', 'testdb')

Parameters

$id
of db node
$db_name
$parameters
url parameters as array, url string or comma seperated string

Returns

array
public array
# attachment_add( string $id, string $db_name, string $key_id, string $mimetype, string $filename, string $binary, string $rev = null )

add an attachment to a document and return the document related key, revision, id

sample:
$cdb->attachment_add('cdb1', 'testdb', 'c64263347690285624b135717e034e4a', 'image/png','logo.png', $bin);

add an attachment to a document and return the document related key, revision, id

sample:
$cdb->attachment_add('cdb1', 'testdb', 'c64263347690285624b135717e034e4a', 'image/png','logo.png', $bin);

Parameters

$id
of db node
$db_name
$key_id
document key/id to update
$mimetype
$filename
$binary
$rev
document revision to update or null for last revision

Returns

array
public string
# attachment_get( string $id, string $db_name, string $key_id, string $filename )

get an attachment of a document and return binary string

sample:
$cdb->attachment_get('cdb1', 'testdb', 'c64263347690285624b135717e034e4a', 'logo.png');

get an attachment of a document and return binary string

sample:
$cdb->attachment_get('cdb1', 'testdb', 'c64263347690285624b135717e034e4a', 'logo.png');

Parameters

$id
of db node
$db_name
$key_id
document key/id to update
$filename

Returns

string
public array
# attachment_del( string $id, string $db_name, string $key_id, string $filename, string $rev = null )

delete an attachment of a document and return the document related key, revision, id

sample:
$cdb->attachment_del('cdb1', 'testdb', 'c64263347690285624b135717e034e4a', 'logo.png');

delete an attachment of a document and return the document related key, revision, id

sample:
$cdb->attachment_del('cdb1', 'testdb', 'c64263347690285624b135717e034e4a', 'logo.png');

Parameters

$id
of db node
$db_name
$key_id
document key/id to update
$filename
$rev
document revision to update or null for last revision

Returns

array

Properties summary

private $m_logger
# null
public string $m_trace_path

path for trace file

path for trace file

# ""
public string $m_trace_file

filename of tracefile

filename of tracefile

# ""
public mixed $m_trace_delAfter

size before trace file will set to zero

size before trace file will set to zero

# "1024K"
public string $m_trace_critical_section_id

enable critical section for write trace files

enable critical section for write trace files

# null
public string $m_trace_critical_section_path

path to share the critical section for write trace files

path to share the critical section for write trace files

# "./"
public integer $m_trace_critical_section_maxlock_ms

max lock time for zombie processes

max lock time for zombie processes

# 1000
public integer $m_trace_critical_section_sleep_ms

sleep for retry enter critical section

sleep for retry enter critical section

# 10
public boolean $m_trace_sqlite

write the trace to a SQLite file instead of a text file

write the trace to a SQLite file instead of a text file

# false
public integer $m_timeout_connect_sec

connect timeout sec

connect timeout sec

# 10
public integer $m_timeout_exec_sec

exec. timeout sec

exec. timeout sec

# 3
public integer $m_lb_reconnect_time_sec

reconnect time for loadbalancing failover

reconnect time for loadbalancing failover

# 60
public integer $m_retry_on_conflict

to retry as sample inserts / updates on document conflicts

to retry as sample inserts / updates on document conflicts

# 1
public integer $m_retry_on_conflict_sleep_ms

time between retry on conflicts in ms

time between retry on conflicts in ms

# 10
public boolean $m_force_resolve_ipv4_before_ipv6

fix routing problems with IPv6 (high start transfer time)

fix routing problems with IPv6 (high start transfer time)

# true
private array $m_couchdb
# array()
private array $m_error
# array()
private array $m_internal_errors
# array()
private integer $m_object_id
# 0
private $m_lb_last_server
# null
private array $m_statistic
# array()
private integer $m_retry_counter
# 0
crVCL PHP Framework Version 2.9 API documentation generated by ApiGen