idx int64 0 60.3k | question stringlengths 92 4.62k | target stringlengths 7 635 |
|---|---|---|
39,900 | private function _writeBoundsheet ( $ sheet , $ offset ) { $ sheetname = $ sheet -> getTitle ( ) ; $ record = 0x0085 ; switch ( $ sheet -> getSheetState ( ) ) { case PHPExcel_Worksheet :: SHEETSTATE_VISIBLE : $ ss = 0x00 ; break ; case PHPExcel_Worksheet :: SHEETSTATE_HIDDEN : $ ss = 0x01 ; break ; case PHPExcel_Worksh... | Writes Excel BIFF BOUNDSHEET record . |
39,901 | private function _writeStyle ( ) { $ record = 0x0293 ; $ length = 0x0004 ; $ ixfe = 0x8000 ; $ BuiltIn = 0x00 ; $ iLevel = 0xff ; $ header = pack ( "vv" , $ record , $ length ) ; $ data = pack ( "vCC" , $ ixfe , $ BuiltIn , $ iLevel ) ; $ this -> _append ( $ header . $ data ) ; } | Write Excel BIFF STYLE records . |
39,902 | private function _writeExterncount ( $ cxals ) { $ record = 0x0016 ; $ length = 0x0002 ; $ header = pack ( "vv" , $ record , $ length ) ; $ data = pack ( "v" , $ cxals ) ; $ this -> _append ( $ header . $ data ) ; } | Write BIFF record EXTERNCOUNT to indicate the number of external sheet references in the workbook . |
39,903 | private function _writeExternsheet ( $ sheetname ) { $ record = 0x0017 ; $ length = 0x02 + strlen ( $ sheetname ) ; $ cch = strlen ( $ sheetname ) ; $ rgch = 0x03 ; $ header = pack ( "vv" , $ record , $ length ) ; $ data = pack ( "CC" , $ cch , $ rgch ) ; $ this -> _append ( $ header . $ data . $ sheetname ) ; } | Writes the Excel BIFF EXTERNSHEET record . These references are used by formulas . NAME record is required to define the print area and the repeat rows and columns . |
39,904 | private function _writeRecalcId ( ) { $ record = 0x01C1 ; $ length = 8 ; $ header = pack ( 'vv' , $ record , $ length ) ; $ data = pack ( 'VV' , 0x000001C1 , 0x00001E667 ) ; return $ this -> writeData ( $ header . $ data ) ; } | Write the RECALCID record |
39,905 | private function _writeMsoDrawingGroup ( ) { if ( isset ( $ this -> _escher ) ) { $ writer = new PHPExcel_Writer_Excel5_Escher ( $ this -> _escher ) ; $ data = $ writer -> close ( ) ; $ record = 0x00EB ; $ length = strlen ( $ data ) ; $ header = pack ( "vv" , $ record , $ length ) ; return $ this -> writeData ( $ heade... | Writes the MSODRAWINGGROUP record if needed . Possibly split using CONTINUE records . |
39,906 | public function Authorise ( $ host , $ port = false , $ tval = false , $ username , $ password , $ debug_level = 0 ) { $ this -> host = $ host ; if ( $ port == false ) { $ this -> port = $ this -> POP3_PORT ; } else { $ this -> port = $ port ; } if ( $ tval == false ) { $ this -> tval = $ this -> POP3_TIMEOUT ; } else ... | Combination of public events - connect login disconnect |
39,907 | public function Connect ( $ host , $ port = false , $ tval = 30 ) { if ( $ this -> connected ) { return true ; } set_error_handler ( array ( & $ this , 'catchWarning' ) ) ; $ this -> pop_conn = fsockopen ( $ host , $ port , $ errno , $ errstr , $ tval ) ; restore_error_handler ( ) ; if ( $ this -> error && $ this -> do... | Connect to the POP3 server |
39,908 | private function sendString ( $ string ) { $ bytes_sent = fwrite ( $ this -> pop_conn , $ string , strlen ( $ string ) ) ; return $ bytes_sent ; } | Send a string down the open socket connection to the POP3 server |
39,909 | private function checkResponse ( $ string ) { if ( substr ( $ string , 0 , 3 ) !== '+OK' ) { $ this -> error = array ( 'error' => "Server reported an error: $string" , 'errno' => 0 , 'errstr' => '' ) ; if ( $ this -> do_debug >= 1 ) { $ this -> displayErrors ( ) ; } return false ; } else { return true ; } } | Checks the POP3 server response for + OK or - ERR |
39,910 | function doRequest ( $ usr_id = 0 , $ curl_options = array ( ) , $ options = array ( ) ) { $ name = isset ( $ options [ 'name' ] ) ? $ options [ 'name' ] : '' ; if ( isset ( $ options [ 'token_ttl' ] ) ) { $ this -> setParam ( 'xoauth_token_ttl' , intval ( $ options [ 'token_ttl' ] ) ) ; } if ( ! empty ( $ this -> file... | Perform the request returns the response code headers and body . |
39,911 | static function requestRequestToken ( $ consumer_key , $ usr_id , $ params = null , $ method = 'POST' , $ options = array ( ) , $ curl_options = array ( ) ) { OAuthRequestLogger :: start ( ) ; if ( isset ( $ options [ 'token_ttl' ] ) && is_numeric ( $ options [ 'token_ttl' ] ) ) { $ params [ 'xoauth_token_ttl' ] = intv... | Request a request token from the site belonging to consumer_key |
39,912 | static function requestAccessToken ( $ consumer_key , $ token , $ usr_id , $ method = 'POST' , $ options = array ( ) , $ curl_options = array ( ) ) { OAuthRequestLogger :: start ( ) ; $ store = OAuthStore :: instance ( ) ; $ r = $ store -> getServerTokenSecrets ( $ consumer_key , $ token , 'request' , $ usr_id ) ; $ ur... | Request an access token from the site belonging to consumer_key . Before this we got an request token now we want to exchange it for an access token . |
39,913 | protected function prepareCurlOptions ( $ curl_options , $ extra_headers ) { $ hs = array ( ) ; if ( ! empty ( $ curl_options [ CURLOPT_HTTPHEADER ] ) && is_array ( $ curl_options [ CURLOPT_HTTPHEADER ] ) ) { foreach ( $ curl_options [ CURLOPT_HTTPHEADER ] as $ h ) { list ( $ opt , $ val ) = explode ( ':' , $ h , 2 ) ;... | Mix the given headers into the headers that were given to curl |
39,914 | static function IsDstNorthAmerica ( $ timestamp = null ) { if ( ! $ timestamp ) $ timestamp = time ( ) ; return $ timestamp > self :: DstStartNorthAmerica ( ) && $ timestamp < self :: DstEndNorthAmerica ( ) ; } | Return true if the date is within the DST observation range for North America |
39,915 | static function OutputHeaders ( $ realm = "Login Required" , $ terminate = true ) { header ( "WWW-Authenticate: Basic realm=\"" . $ realm . "\"" ) ; header ( "Status: 401 Unauthorized" ) ; header ( "HTTP-Status: 401 Unauthorized" ) ; if ( $ terminate ) die ( ) ; } | Send 401 headers to the browser |
39,916 | function parse ( $ input = null , $ offset = null , $ limit = null , $ conditions = null ) { if ( $ input === null ) $ input = $ this -> file ; if ( ! empty ( $ input ) ) { if ( $ offset !== null ) $ this -> offset = $ offset ; if ( $ limit !== null ) $ this -> limit = $ limit ; if ( count ( $ conditions ) > 0 ) $ this... | Parse CSV file or string |
39,917 | function output ( $ filename = null , $ data = array ( ) , $ fields = array ( ) , $ delimiter = null ) { if ( empty ( $ filename ) ) $ filename = $ this -> output_filename ; if ( $ delimiter === null ) $ delimiter = $ this -> output_delimiter ; $ data = $ this -> unparse ( $ data , $ fields , null , null , $ delimiter ... | Generate CSV based string for output |
39,918 | function unparse ( $ data = array ( ) , $ fields = array ( ) , $ append = false , $ is_php = false , $ delimiter = null ) { if ( ! is_array ( $ data ) || empty ( $ data ) ) $ data = & $ this -> data ; if ( ! is_array ( $ fields ) || empty ( $ fields ) ) $ fields = & $ this -> titles ; if ( $ delimiter === null ) $ deli... | Create CSV data from array |
39,919 | function _validate_row_conditions ( $ row = array ( ) , $ conditions = null ) { if ( ! empty ( $ row ) ) { if ( ! empty ( $ conditions ) ) { $ conditions = ( strpos ( $ conditions , ' OR ' ) !== false ) ? explode ( ' OR ' , $ conditions ) : array ( $ conditions ) ; $ or = '' ; foreach ( $ conditions as $ key => $ value... | Validate a row against specified conditions |
39,920 | function _rfile ( $ file = null ) { if ( is_readable ( $ file ) ) { if ( ! ( $ fh = fopen ( $ file , 'r' ) ) ) return false ; $ data = fread ( $ fh , filesize ( $ file ) ) ; fclose ( $ fh ) ; return $ data ; } return false ; } | Read local file |
39,921 | public function addFromSource ( $ pSource = null ) { if ( $ pSource == null ) { return ; } else if ( ! is_array ( $ pSource ) ) { throw new PHPExcel_Exception ( 'Invalid array parameter passed.' ) ; } foreach ( $ pSource as $ item ) { $ this -> add ( $ item ) ; } } | Add HashTable items from source |
39,922 | protected function decode ( $ string ) { if ( ( $ pos = strpos ( $ string , ':' ) ) !== false ) { if ( ! strncmp ( $ string , 'base64' , 6 ) ) { return base64_decode ( substr ( $ string , 7 ) ) ; } elseif ( ! strncmp ( $ string , 'urlencode' , 9 ) ) { return urldecode ( substr ( $ string , 10 ) ) ; } } return $ string ... | decode base64 and urlencode |
39,923 | private function AddAnAddress ( $ kind , $ address , $ name = '' ) { if ( ! preg_match ( '/^(to|cc|bcc|ReplyTo)$/' , $ kind ) ) { echo 'Invalid recipient array: ' . kind ; return false ; } $ address = trim ( $ address ) ; $ name = trim ( preg_replace ( '/[\r\n]+/' , '' , $ name ) ) ; if ( ! self :: ValidateAddress ( $ ... | Adds an address to one of the recipient arrays Addresses that have been added already return false but do not throw exceptions |
39,924 | function SetLanguage ( $ langcode = 'en' , $ lang_path = 'language/' ) { $ PHPMAILER_LANG = array ( 'provide_address' => 'You must provide at least one recipient email address.' , 'mailer_not_supported' => ' mailer is not supported.' , 'execute' => 'Could not execute: ' , 'instantiate' => 'Could not instantiate mail fu... | Sets the language for all class error messages . Returns false if it cannot load the language file . The default language is English . |
39,925 | public function AddrAppend ( $ type , $ addr ) { $ addr_str = $ type . ': ' ; $ addresses = array ( ) ; foreach ( $ addr as $ a ) { $ addresses [ ] = $ this -> AddrFormat ( $ a ) ; } $ addr_str .= implode ( ', ' , $ addresses ) ; $ addr_str .= $ this -> LE ; return $ addr_str ; } | Creates recipient headers . |
39,926 | public function AddrFormat ( $ addr ) { if ( empty ( $ addr [ 1 ] ) ) { return $ this -> SecureHeader ( $ addr [ 0 ] ) ; } else { return $ this -> EncodeHeader ( $ this -> SecureHeader ( $ addr [ 1 ] ) , 'phrase' ) . " <" . $ this -> SecureHeader ( $ addr [ 0 ] ) . ">" ; } } | Formats an address correctly . |
39,927 | public function AddAttachment ( $ path , $ name = '' , $ encoding = 'base64' , $ type = 'application/octet-stream' ) { try { if ( ! @ is_file ( $ path ) ) { throw new phpmailerException ( $ this -> Lang ( 'file_access' ) . $ path , self :: STOP_CONTINUE ) ; } $ filename = basename ( $ path ) ; if ( $ name == '' ) { $ n... | Adds an attachment from a path on the filesystem . Returns false if the file could not be found or accessed . |
39,928 | public function HasMultiBytes ( $ str ) { if ( function_exists ( 'mb_strlen' ) ) { return ( strlen ( $ str ) > mb_strlen ( $ str , $ this -> CharSet ) ) ; } else { return false ; } } | Checks if a string contains multibyte characters . |
39,929 | public function EncodeQPphp ( $ input = '' , $ line_max = 76 , $ space_conv = false ) { $ hex = array ( '0' , '1' , '2' , '3' , '4' , '5' , '6' , '7' , '8' , '9' , 'A' , 'B' , 'C' , 'D' , 'E' , 'F' ) ; $ lines = preg_split ( '/(?:\r\n|\r|\n)/' , $ input ) ; $ eol = "\r\n" ; $ escape = '=' ; $ output = '' ; while ( list... | Encode string to quoted - printable . Only uses standard PHP slow but will always work |
39,930 | public function ClearAddresses ( ) { foreach ( $ this -> to as $ to ) { unset ( $ this -> all_recipients [ strtolower ( $ to [ 0 ] ) ] ) ; } $ this -> to = array ( ) ; } | Clears all recipients assigned in the TO array . Returns void . |
39,931 | public function ClearCCs ( ) { foreach ( $ this -> cc as $ cc ) { unset ( $ this -> all_recipients [ strtolower ( $ cc [ 0 ] ) ] ) ; } $ this -> cc = array ( ) ; } | Clears all recipients assigned in the CC array . Returns void . |
39,932 | public function ClearBCCs ( ) { foreach ( $ this -> bcc as $ bcc ) { unset ( $ this -> all_recipients [ strtolower ( $ bcc [ 0 ] ) ] ) ; } $ this -> bcc = array ( ) ; } | Clears all recipients assigned in the BCC array . Returns void . |
39,933 | private function Lang ( $ key ) { if ( count ( $ this -> language ) < 1 ) { $ this -> SetLanguage ( 'en' ) ; } if ( isset ( $ this -> language [ $ key ] ) ) { return $ this -> language [ $ key ] ; } else { return 'Language string failed to load: ' . $ key ; } } | Returns a message in the appropriate language . |
39,934 | private function FixEOL ( $ str ) { $ str = str_replace ( "\r\n" , "\n" , $ str ) ; $ str = str_replace ( "\r" , "\n" , $ str ) ; $ str = str_replace ( "\n" , $ this -> LE , $ str ) ; return $ str ; } | Changes every end of line from CR or LF to CRLF . |
39,935 | public function MsgHTML ( $ message , $ basedir = '' ) { preg_match_all ( "/(src|background)=\"(.*)\"/Ui" , $ message , $ images ) ; if ( isset ( $ images [ 2 ] ) ) { foreach ( $ images [ 2 ] as $ i => $ url ) { if ( ! preg_match ( '#^[A-z]+://#' , $ url ) ) { $ filename = basename ( $ url ) ; $ directory = dirname ( $... | Evaluates the message and returns modifications for inline images and backgrounds |
39,936 | public function SecureHeader ( $ str ) { $ str = str_replace ( "\r" , '' , $ str ) ; $ str = str_replace ( "\n" , '' , $ str ) ; return trim ( $ str ) ; } | Strips newlines to prevent header injection . |
39,937 | public function Sign ( $ cert_filename , $ key_filename , $ key_pass ) { $ this -> sign_cert_file = $ cert_filename ; $ this -> sign_key_file = $ key_filename ; $ this -> sign_key_pass = $ key_pass ; } | Set the private key file and password to sign the message . |
39,938 | public function DKIM_Sign ( $ s ) { $ privKeyStr = file_get_contents ( $ this -> DKIM_private ) ; if ( $ this -> DKIM_passphrase != '' ) { $ privKey = openssl_pkey_get_private ( $ privKeyStr , $ this -> DKIM_passphrase ) ; } else { $ privKey = $ privKeyStr ; } if ( openssl_sign ( $ s , $ signature , $ privKey ) ) { ret... | Generate DKIM signature |
39,939 | public function DKIM_HeaderC ( $ s ) { $ s = preg_replace ( "/\r\n\s+/" , " " , $ s ) ; $ lines = explode ( "\r\n" , $ s ) ; foreach ( $ lines as $ key => $ line ) { list ( $ heading , $ value ) = explode ( ":" , $ line , 2 ) ; $ heading = strtolower ( $ heading ) ; $ value = preg_replace ( "/\s+/" , " " , $ value ) ; ... | Generate DKIM Canonicalization Header |
39,940 | public function getCachedContent ( Smarty_Internal_Template $ _template ) { if ( $ _template -> cached -> handler -> process ( $ _template ) ) { ob_start ( ) ; $ _template -> properties [ 'unifunc' ] ( $ _template ) ; return ob_get_clean ( ) ; } return null ; } | Return cached content |
39,941 | function createCalscale ( ) { if ( ! isset ( $ this -> calscale ) ) return ; switch ( $ this -> format ) { case 'xcal' : return ' calscale="' . $ this -> calscale . '"' . $ this -> nl ; break ; default : return 'CALSCALE:' . $ this -> calscale . $ this -> nl ; break ; } } | creates formatted output for calendar property calscale |
39,942 | function createMethod ( ) { if ( ! isset ( $ this -> method ) ) return ; switch ( $ this -> format ) { case 'xcal' : return ' method="' . $ this -> method . '"' . $ this -> nl ; break ; default : return 'METHOD:' . $ this -> method . $ this -> nl ; break ; } } | creates formatted output for calendar property method |
39,943 | function createProdid ( ) { if ( ! isset ( $ this -> prodid ) ) $ this -> _makeProdid ( ) ; switch ( $ this -> format ) { case 'xcal' : return ' prodid="' . $ this -> prodid . '"' . $ this -> nl ; break ; default : return 'PRODID:' . $ this -> prodid . $ this -> nl ; break ; } } | creates formatted output for calendar property prodid |
39,944 | function createVersion ( ) { if ( ! isset ( $ this -> version ) ) $ this -> _makeVersion ( ) ; switch ( $ this -> format ) { case 'xcal' : return ' version="' . $ this -> version . '"' . $ this -> nl ; break ; default : return 'VERSION:' . $ this -> version . $ this -> nl ; break ; } } | creates formatted output for calendar property version |
39,945 | function createXprop ( ) { if ( 'xcal' == $ this -> format ) return false ; if ( 0 >= count ( $ this -> xprop ) ) return ; $ xprop = null ; $ toolbox = new calendarComponent ( ) ; $ toolbox -> setConfig ( 'language' , $ this -> getConfig ( 'language' ) ) ; $ toolbox -> setConfig ( 'nl' , $ this -> getConfig ( 'nl' ) ) ... | creates formatted output for calendar property x - prop iCal format only |
39,946 | function setXprop ( $ label , $ value , $ params = FALSE ) { if ( empty ( $ label ) || empty ( $ value ) ) return ; $ xprop = array ( 'value' => $ value ) ; $ toolbox = new calendarComponent ( ) ; $ xprop [ 'params' ] = $ toolbox -> _setParams ( $ params ) ; $ this -> xprop [ $ label ] = $ xprop ; } | set calendar property x - prop |
39,947 | function deleteProperty ( $ propName , $ propix = FALSE ) { $ propName = ( $ propName ) ? strtoupper ( $ propName ) : 'X-PROP' ; if ( ! $ propix ) $ propix = ( isset ( $ this -> propdelix [ $ propName ] ) ) ? $ this -> propdelix [ $ propName ] + 2 : 1 ; $ this -> propdelix [ $ propName ] = -- $ propix ; $ return = FALS... | delete calendar property value |
39,948 | function setProperty ( ) { $ numargs = func_num_args ( ) ; if ( 1 >= $ numargs ) return FALSE ; $ arglist = func_get_args ( ) ; if ( ! $ this -> getConfig ( 'allowEmpty' ) && ( ! isset ( $ arglist [ 1 ] ) || empty ( $ arglist [ 1 ] ) ) ) return ; $ arglist [ 0 ] = strtoupper ( $ arglist [ 0 ] ) ; for ( $ argix = $ numa... | general vcalendar property setting |
39,949 | function setConfig ( $ config , $ value ) { switch ( strtoupper ( $ config ) ) { case 'ALLOWEMPTY' : $ this -> allowEmpty = $ value ; break ; case 'DELIMITER' : $ this -> delimiter = $ value ; break ; case 'DIRECTORY' : $ value = trim ( $ value ) ; $ nl = $ this -> getConfig ( 'delimiter' ) ; if ( $ nl == substr ( $ va... | general vcalendar config setting |
39,950 | function deleteComponent ( $ arg1 , $ arg2 = FALSE ) { $ argType = $ index = null ; if ( ctype_digit ( ( string ) $ arg1 ) ) { $ argType = 'INDEX' ; $ index = ( int ) $ arg1 - 1 ; } elseif ( ( strlen ( $ arg1 ) <= strlen ( 'vfreebusy' ) ) && ( FALSE === strpos ( $ arg1 , '@' ) ) ) { $ argType = strtolower ( $ arg1 ) ; ... | delete calendar component from container |
39,951 | function getComponent ( $ arg1 = FALSE , $ arg2 = FALSE ) { $ index = $ argType = null ; if ( ! $ arg1 ) { $ argType = 'INDEX' ; $ index = $ this -> compix [ 'INDEX' ] = ( isset ( $ this -> compix [ 'INDEX' ] ) ) ? $ this -> compix [ 'INDEX' ] + 1 : 1 ; } elseif ( ctype_digit ( ( string ) $ arg1 ) ) { $ argType = 'INDE... | get calendar component from container |
39,952 | function saveCalendar ( $ directory = FALSE , $ filename = FALSE , $ delimiter = FALSE ) { if ( $ directory ) $ this -> setConfig ( 'directory' , $ directory ) ; if ( $ filename ) $ this -> setConfig ( 'filename' , $ filename ) ; if ( $ delimiter && ( $ delimiter != DIRECTORY_SEPARATOR ) ) $ this -> setConfig ( 'delimi... | save content in a file |
39,953 | function calendarComponent ( ) { $ this -> objName = ( isset ( $ this -> timezonetype ) ) ? strtolower ( $ this -> timezonetype ) : get_class ( $ this ) ; $ this -> uid = array ( ) ; $ this -> dtstamp = array ( ) ; $ this -> action = array ( ) ; $ this -> attach = array ( ) ; $ this -> attendee = array ( ) ; $ this -> ... | constructor for calendar component object |
39,954 | function createAction ( ) { if ( ! isset ( $ this -> action [ 'value' ] ) ) return ; $ attributes = $ this -> _createParams ( $ this -> action [ 'params' ] ) ; return $ this -> _createElement ( 'ACTION' , $ attributes , $ this -> action [ 'value' ] ) ; } | creates formatted output for calendar component property action |
39,955 | function setAction ( $ value , $ params = FALSE ) { $ this -> action [ 'value' ] = $ value ; $ this -> action [ 'params' ] = $ this -> _setParams ( $ params ) ; } | set calendar component property action |
39,956 | function createAttach ( ) { $ cnt = count ( $ this -> attach ) ; if ( 0 >= $ cnt ) return ; $ output = null ; foreach ( $ this -> attach as $ attachPart ) { $ attributes = $ this -> _createParams ( $ attachPart [ 'params' ] ) ; $ output .= $ this -> _createElement ( 'ATTACH' , $ attributes , $ attachPart [ 'value' ] ) ... | creates formatted output for calendar component property attach |
39,957 | function createAttendee ( ) { $ cnt = count ( $ this -> attendee ) ; if ( 0 >= $ cnt ) return ; $ attendees = null ; foreach ( $ this -> attendee as $ attendeePart ) { $ attendee1 = $ attendee2 = $ attendeeLANG = $ attendeeCN = null ; foreach ( $ attendeePart as $ paramlabel => $ paramvalue ) { if ( 'value' == $ paraml... | creates formatted output for calendar component property attendee |
39,958 | function createCategories ( ) { $ cnt = count ( $ this -> categories ) ; if ( 0 >= $ cnt ) return ; $ output = null ; foreach ( $ this -> categories as $ category ) { $ attributes = $ this -> _createParams ( $ category [ 'params' ] , array ( 'LANGUAGE' ) ) ; if ( is_array ( $ category [ 'value' ] ) ) { foreach ( $ cate... | creates formatted output for calendar component property categories |
39,959 | function setCategories ( $ value , $ params = FALSE ) { $ category = array ( ) ; $ category [ 'value' ] = $ value ; $ category [ 'params' ] = $ this -> _setParams ( $ params ) ; $ this -> categories [ ] = $ category ; } | set calendar component property categories |
39,960 | function createClass ( ) { $ cnt = count ( $ this -> class ) ; if ( 0 >= $ cnt ) return ; $ attributes = $ this -> _createParams ( $ this -> class [ 'params' ] ) ; return $ this -> _createElement ( 'CLASS' , $ attributes , $ this -> class [ 'value' ] ) ; } | creates formatted output for calendar component property class |
39,961 | function setClass ( $ value , $ params = FALSE ) { $ this -> class [ 'value' ] = $ value ; $ this -> class [ 'params' ] = $ this -> _setParams ( $ params ) ; } | set calendar component property class |
39,962 | function createComment ( ) { $ cnt = count ( $ this -> comment ) ; if ( 0 >= $ cnt ) return ; $ comment = null ; foreach ( $ this -> comment as $ commentPart ) { $ attributes = $ this -> _createParams ( $ commentPart [ 'params' ] , array ( 'ALTREP' , 'LANGUAGE' ) ) ; $ content = $ this -> _strrep ( $ commentPart [ 'val... | creates formatted output for calendar component property comment |
39,963 | function setComment ( $ value , $ params = FALSE ) { $ comment [ 'value' ] = $ value ; $ comment [ 'params' ] = $ this -> _setParams ( $ params ) ; $ this -> comment [ ] = $ comment ; } | set calendar component property comment |
39,964 | function createCompleted ( ) { if ( ! isset ( $ this -> completed [ 'value' ] [ 'year' ] ) && ! isset ( $ this -> completed [ 'value' ] [ 'month' ] ) && ! isset ( $ this -> completed [ 'value' ] [ 'day' ] ) && ! isset ( $ this -> completed [ 'value' ] [ 'hour' ] ) && ! isset ( $ this -> completed [ 'value' ] [ 'min' ] ... | creates formatted output for calendar component property completed |
39,965 | function createContact ( ) { $ cnt = count ( $ this -> contact ) ; if ( 0 >= $ cnt ) return ; $ output = null ; foreach ( $ this -> contact as $ contact ) { $ attributes = $ this -> _createParams ( $ contact [ 'params' ] , array ( 'ALTREP' , 'LANGUAGE' ) ) ; $ content = $ this -> _strrep ( $ contact [ 'value' ] ) ; $ o... | creates formatted output for calendar component property contact |
39,966 | function setContact ( $ value , $ params = FALSE ) { $ contact [ 'value' ] = $ value ; $ contact [ 'params' ] = $ this -> _setParams ( $ params ) ; $ this -> contact [ ] = $ contact ; } | set calendar component property contact |
39,967 | function createCreated ( ) { if ( ! isset ( $ this -> created [ 'value' ] [ 'year' ] ) && ! isset ( $ this -> created [ 'value' ] [ 'month' ] ) && ! isset ( $ this -> created [ 'value' ] [ 'day' ] ) && ! isset ( $ this -> created [ 'value' ] [ 'hour' ] ) && ! isset ( $ this -> created [ 'value' ] [ 'min' ] ) && ! isset... | creates formatted output for calendar component property created |
39,968 | function setCreated ( $ year = FALSE , $ month = FALSE , $ day = FALSE , $ hour = FALSE , $ min = FALSE , $ sec = FALSE , $ params = FALSE ) { if ( ! isset ( $ year ) ) { $ year = date ( 'Ymd\THis' , mktime ( date ( 'H' ) , date ( 'i' ) , date ( 's' ) - date ( 'Z' ) , date ( 'm' ) , date ( 'd' ) , date ( 'Y' ) ) ) ; } ... | set calendar component property created |
39,969 | function createDescription ( ) { $ cnt = count ( $ this -> description ) ; if ( 0 >= $ cnt ) return ; $ descriptions = null ; foreach ( $ this -> description as $ description ) { $ attributes = $ this -> _createParams ( $ description [ 'params' ] , array ( 'ALTREP' , 'LANGUAGE' ) ) ; $ content = $ this -> _strrep ( $ d... | creates formatted output for calendar component property description |
39,970 | function setDescription ( $ value , $ params = FALSE ) { $ description [ 'value' ] = $ value ; $ description [ 'params' ] = $ this -> _setParams ( $ params ) ; $ this -> description [ ] = $ description ; } | set calendar component property description |
39,971 | function createDtend ( ) { if ( ! isset ( $ this -> dtend [ 'value' ] [ 'year' ] ) && ! isset ( $ this -> dtend [ 'value' ] [ 'month' ] ) && ! isset ( $ this -> dtend [ 'value' ] [ 'day' ] ) && ! isset ( $ this -> dtend [ 'value' ] [ 'hour' ] ) && ! isset ( $ this -> dtend [ 'value' ] [ 'min' ] ) && ! isset ( $ this ->... | creates formatted output for calendar component property dtend |
39,972 | function setDtend ( $ year , $ month = FALSE , $ day = FALSE , $ hour = FALSE , $ min = FALSE , $ sec = FALSE , $ tz = FALSE , $ params = FALSE ) { $ this -> dtend = $ this -> _setDate ( $ year , $ month , $ day , $ hour , $ min , $ sec , $ tz , $ params ) ; } | set calendar component property dtend |
39,973 | function createDtstamp ( ) { if ( ! isset ( $ htis -> dtstamp [ 'value' ] [ 'year' ] ) && ! isset ( $ this -> dtstamp [ 'value' ] [ 'month' ] ) && ! isset ( $ this -> dtstamp [ 'value' ] [ 'day' ] ) && ! isset ( $ this -> dtstamp [ 'value' ] [ 'hour' ] ) && ! isset ( $ this -> dtstamp [ 'value' ] [ 'min' ] ) && ! isset... | creates formatted output for calendar component property dtstamp |
39,974 | function _makeDtstamp ( ) { $ this -> dtstamp [ 'value' ] = array ( 'year' => date ( 'Y' ) , 'month' => date ( 'm' ) , 'day' => date ( 'd' ) , 'hour' => date ( 'H' ) , 'min' => date ( 'i' ) , 'sec' => date ( 's' ) - date ( 'Z' ) ) ; $ this -> dtstamp [ 'params' ] = null ; } | computes datestamp for calendar component object instance dtstamp |
39,975 | function setDtstamp ( $ year , $ month = FALSE , $ day = FALSE , $ hour = FALSE , $ min = FALSE , $ sec = FALSE , $ params = FALSE ) { $ this -> dtstamp = $ this -> _setDate2 ( $ year , $ month , $ day , $ hour , $ min , $ sec , $ params ) ; } | set calendar component property dtstamp |
39,976 | function createDtstart ( $ localtime = FALSE ) { if ( ! isset ( $ this -> dtstart [ 'value' ] [ 'year' ] ) && ! isset ( $ this -> dtstart [ 'value' ] [ 'month' ] ) && ! isset ( $ this -> dtstart [ 'value' ] [ 'day' ] ) && ! isset ( $ this -> dtstart [ 'value' ] [ 'hour' ] ) && ! isset ( $ this -> dtstart [ 'value' ] [ ... | creates formatted output for calendar component property dtstart |
39,977 | function setDtstart ( $ year , $ month = FALSE , $ day = FALSE , $ hour = FALSE , $ min = FALSE , $ sec = FALSE , $ tz = FALSE , $ params = FALSE ) { $ this -> dtstart = $ this -> _setDate ( $ year , $ month , $ day , $ hour , $ min , $ sec , $ tz , $ params ) ; } | set calendar component property dtstart |
39,978 | function createDue ( ) { if ( ! isset ( $ this -> due [ 'value' ] [ 'year' ] ) && ! isset ( $ this -> due [ 'value' ] [ 'month' ] ) && ! isset ( $ this -> due [ 'value' ] [ 'day' ] ) && ! isset ( $ this -> due [ 'value' ] [ 'hour' ] ) && ! isset ( $ this -> due [ 'value' ] [ 'min' ] ) && ! isset ( $ this -> due [ 'valu... | creates formatted output for calendar component property due |
39,979 | function setDue ( $ year , $ month = FALSE , $ day = FALSE , $ hour = FALSE , $ min = FALSE , $ sec = FALSE , $ tz = FALSE , $ params = FALSE ) { $ this -> due = $ this -> _setDate ( $ year , $ month , $ day , $ hour , $ min , $ sec , $ tz , $ params ) ; } | set calendar component property due |
39,980 | function createDuration ( ) { if ( ! isset ( $ this -> duration [ 'value' ] [ 'week' ] ) && ! isset ( $ this -> duration [ 'value' ] [ 'day' ] ) && ! isset ( $ this -> duration [ 'value' ] [ 'hour' ] ) && ! isset ( $ this -> duration [ 'value' ] [ 'min' ] ) && ! isset ( $ this -> duration [ 'value' ] [ 'sec' ] ) ) retu... | creates formatted output for calendar component property duration |
39,981 | function setDuration ( $ week = FALSE , $ day = FALSE , $ hour = FALSE , $ min = FALSE , $ sec = FALSE , $ params = FALSE ) { if ( is_array ( $ week ) ) { $ this -> duration [ 'value' ] = $ this -> _duration_array ( $ week ) ; $ this -> duration [ 'params' ] = $ this -> _setParams ( $ day ) ; } elseif ( is_string ( $ w... | set calendar component property duration |
39,982 | function createExdate ( ) { $ cnt = count ( $ this -> exdate ) ; if ( 0 >= $ cnt ) return ; $ output = null ; foreach ( $ this -> exdate as $ theExdate ) { $ content = $ attributes = null ; foreach ( $ theExdate [ 'value' ] as $ eix => $ exdatePart ) { $ formatted = $ this -> _format_date_time ( $ exdatePart ) ; if ( i... | creates formatted output for calendar component property exdate |
39,983 | function createExrule ( ) { $ cnt = count ( $ this -> exrule ) ; if ( 0 >= $ cnt ) return ; $ exrule = 'EXRULE' ; return $ this -> _format_recur ( $ exrule , $ this -> exrule ) ; } | creates formatted output for calendar component property exrule |
39,984 | function createFreebusy ( ) { $ cnt = count ( $ this -> freebusy ) ; if ( 0 >= $ cnt ) return ; $ output = null ; foreach ( $ this -> freebusy as $ freebusyPart ) { $ attributes = $ content = null ; if ( isset ( $ freebusyPart [ 'value' ] [ 'fbtype' ] ) ) { $ attributes .= $ this -> intAttrDelimiter . 'FBTYPE=' . $ fre... | creates formatted output for calendar component property freebusy |
39,985 | function setFreebusy ( $ fbType , $ fbValues , $ params = FALSE ) { $ fbType = strtoupper ( $ fbType ) ; if ( ( ! in_array ( $ fbType , array ( 'FREE' , 'BUSY' , 'BUSY-UNAVAILABLE' , 'BUSY-TENTATIVE' ) ) ) && ( 'X-' != substr ( $ fbType , 0 , 2 ) ) ) $ fbType = 'BUSY' ; $ freebusy [ 'value' ] = array ( 'fbtype' => $ fb... | set calendar component property freebusy |
39,986 | function createGeo ( ) { $ cnt = count ( $ this -> geo ) ; if ( 0 >= $ cnt ) return ; $ attributes = $ this -> _createParams ( $ this -> geo [ 'params' ] ) ; $ content = null ; $ content .= number_format ( ( float ) $ this -> geo [ 'value' ] [ 'latitude' ] , 6 , '.' , '' ) ; $ content .= ';' ; $ content .= number_forma... | creates formatted output for calendar component property geo |
39,987 | function setGeo ( $ latitude , $ longitude , $ params = FALSE ) { $ this -> geo [ 'value' ] [ 'latitude' ] = $ latitude ; $ this -> geo [ 'value' ] [ 'longitude' ] = $ longitude ; $ this -> geo [ 'params' ] = $ this -> _setParams ( $ params ) ; } | set calendar component property geo |
39,988 | function createLastModified ( ) { if ( ! isset ( $ this -> lastmodified [ 'value' ] [ 'year' ] ) && ! isset ( $ this -> lastmodified [ 'value' ] [ 'month' ] ) && ! isset ( $ this -> lastmodified [ 'value' ] [ 'day' ] ) && ! isset ( $ this -> lastmodified [ 'value' ] [ 'hour' ] ) && ! isset ( $ this -> lastmodified [ 'v... | creates formatted output for calendar component property last - modified |
39,989 | function createLocation ( ) { $ cnt = count ( $ this -> location ) ; if ( 0 >= $ cnt ) return ; $ attributes = $ this -> _createParams ( $ this -> location [ 'params' ] , array ( 'ALTREP' , 'LANGUAGE' ) ) ; $ content = $ this -> _strrep ( $ this -> location [ 'value' ] ) ; return $ this -> _createElement ( 'LOCATION' ,... | creates formatted output for calendar component property location |
39,990 | function setLocation ( $ value , $ params = FALSE ) { $ this -> location [ 'value' ] = $ value ; $ this -> location [ 'params' ] = $ this -> _setParams ( $ params ) ; } | set calendar component property location |
39,991 | function createOrganizer ( ) { $ cnt = count ( $ this -> organizer ) ; if ( 0 >= $ cnt ) return ; $ attributes = $ this -> _createParams ( $ this -> organizer [ 'params' ] , array ( 'CN' , 'DIR' , 'LANGUAGE' , 'SENT-BY' ) ) ; $ content = 'MAILTO:' . $ this -> organizer [ 'value' ] ; return $ this -> _createElement ( 'O... | creates formatted output for calendar component property organizer |
39,992 | function setOrganizer ( $ value , $ params = FALSE ) { $ value = str_replace ( 'MAILTO:' , '' , $ value ) ; $ value = str_replace ( 'mailto:' , '' , $ value ) ; $ this -> organizer [ 'value' ] = $ value ; $ this -> organizer [ 'params' ] = $ this -> _setParams ( $ params ) ; if ( isset ( $ this -> organizer [ 'params' ... | set calendar component property organizer |
39,993 | function createPercentComplete ( ) { $ cnt = count ( $ this -> percentcomplete ) ; if ( 0 >= $ cnt ) return ; $ attributes = $ this -> _createParams ( $ this -> percentcomplete [ 'params' ] ) ; return $ this -> _createElement ( 'PERCENT-COMPLETE' , $ attributes , $ this -> percentcomplete [ 'value' ] ) ; } | creates formatted output for calendar component property percent - complete |
39,994 | function setPercentComplete ( $ value , $ params = FALSE ) { $ this -> percentcomplete [ 'value' ] = $ value ; $ this -> percentcomplete [ 'params' ] = $ this -> _setParams ( $ params ) ; } | set calendar component property percent - complete |
39,995 | function createPriority ( ) { $ cnt = count ( $ this -> priority ) ; if ( 0 >= $ cnt ) return ; $ attributes = $ this -> _createParams ( $ this -> priority [ 'params' ] ) ; return $ this -> _createElement ( 'PRIORITY' , $ attributes , $ this -> priority [ 'value' ] ) ; } | creates formatted output for calendar component property priority |
39,996 | function setPriority ( $ value , $ params = FALSE ) { $ this -> priority [ 'value' ] = $ value ; $ this -> priority [ 'params' ] = $ this -> _setParams ( $ params ) ; } | set calendar component property priority |
39,997 | function createRecurrenceid ( ) { $ cnt = count ( $ this -> recurrenceid ) ; if ( 0 >= $ cnt ) return ; $ formatted = $ this -> _format_date_time ( $ this -> recurrenceid [ 'value' ] ) ; $ attributes = $ this -> _createParams ( $ this -> recurrenceid [ 'params' ] ) ; return $ this -> _createElement ( 'RECURRENCE-ID' , ... | creates formatted output for calendar component property recurrence - id |
39,998 | function setRecurrenceid ( $ year , $ month = FALSE , $ day = FALSE , $ hour = FALSE , $ min = FALSE , $ sec = FALSE , $ tz = FALSE , $ params = FALSE ) { $ this -> recurrenceid = $ this -> _setDate ( $ year , $ month , $ day , $ hour , $ min , $ sec , $ tz , $ params ) ; } | set calendar component property recurrence - id |
39,999 | function createRelatedTo ( ) { $ cnt = count ( $ this -> relatedto ) ; if ( 0 >= $ cnt ) return ; $ output = null ; foreach ( $ this -> relatedto as $ relation ) { $ attributes = $ this -> _createParams ( $ relation [ 'params' ] ) ; $ content = '<' . $ this -> _strrep ( $ relation [ 'value' ] ) . '>' ; $ output .= $ th... | creates formatted output for calendar component property related - to |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.