Grimport functions

actionError ( closure action )
actionHttpError ( closure action )
activeFlexibleComparaison ( boolean trueOrFalse )
addAttributeCacheEntry ( string name , string id , string combinationId )
addCategoryCacheEntry ( string name , string id , string parentId , string path )
addCombinationCacheEntry ( string name , string id )
addCookie ( string name , string value , string _url )
addFeatureCacheEntry ( string name , string id )
addFeatureValueCacheEntry ( string name , string id , string featureId )
addLink ( string link , int _depth )
addProduct ( string productName , mixed productPrice , string url , string _reference , string _productImage , string _productQuantity , mixed _additionalInformation )
alert ( string message )
allowCommandSending ( )
arrayContains ( list/map array , object search )
arrayUnique ( array list )
asynchronous ( closure closure , object[] _params , int _nbOfThreads , string _id )
asynchronousWait ( string _id )
authByDigest ( array login , array password , string _url )
authNextHttpRequest ( array login , array password )
base64Decode ( string txt )
base64Encode ( string txt )
bbcodeToHtml ( string html )
blockCommandSending ( )
capitalize ( string txt , int _policy )
ceil ( number number )
changeProxyOpenVPN ( int eachMinutes , string exePathOpenVPN , string default:home_page _pageForConnectionTest , array _dataTabForTest )
chunk ( list/map list , int/object begin , int/object end )
cleanAllDuplicateProblems ( )
cleanBlanks ( string txt )
cleanFor ( string text , string _typeOfCleanning , int _maxCaracter )
cleanRegex ( string regex , string _code , string _postProcessing , int _numberOfMask )
cleanRegexAll ( string regex , string _code , string _postProcessing , int _numberOfMask )
cleanSelect ( string cssSelector , string _code , string _selection , string _postProcessing )
cleanSelectAll ( string cssSelector , string _code , string _selection , string _postProcessing )
clearAllCookies ( )
clearCookie ( string _urlDomain )
clearExcelCache ( )
clipboard ( )
contains ( object longString , object search )
count ( object object )
csv ( string path , array[string] data , string _separator , string _quoteChar , string _escapeChar )
csvToArray ( string path , string _separator , string _lineEnd , boolean _isHeaders )
cutAtWord ( string txt , int nbChars )
delete ( string path )
deleteObject ( string name )
display ( string message , boolean[default:false] withoutLineBreak , boolean[default:false] displayThreadId )
displayCommands ( )
download ( string url , string path )
ean12ToEan13 ( string ean12 )
elementToArray ( string code )
equals ( object compare1 , object compare2 , object ... )
equalsIgnoreCase ( object compare1 , object compare2 , object ... )
extract ( string zipPath , string destinationFolder , string _type )
findAndValidateFinalLinksForQueue ( int|default:1 _nbTasks , regex _regexExclusion )
formatDate ( string format , long timestamp )
formatPrice ( number number , string country )
ftpDownload ( string server , string login , string password , string pathOnServer , string pathOnDisk , int _port )
ftpRemove ( string server , string login , string password , string path , int _port )
ftpUpload ( string server , string login , string password , string pathServer , string pathDisk , int _chmod , int _port )
function ( string function_name , array arguments )
functionNow ( string function_name , array arguments )
functionNowExternal ( array communicationLink , string function_name , array arguments )
functionStack ( list stack , string function_name , array arguments )
generateCombinations ( array ids_attributes_of_combination1 , array ids_attributes_of_combination2 , array ... )
generateCombinationsWithAttributeCodes ( array maps )
generateReference ( string germ , int _size , int _base )
getAttribute ( int combination_id , string search , boolean _isCloserSearch , boolean _returnList )
getAttributes ( )
getAttributesToCombinations ( )
getCategories ( )
getCategoriesPaths ( )
getCategory ( string search , boolean _usePath , boolean _isCloserSearch , boolean _returnList )
getCategoryChildren ( int id_category )
getCategoryIn ( string search , string idParentCategory , boolean _returnPath , boolean _isCloserSearch , boolean _returnList )
getCombination ( string search , boolean _isCloserSearch , boolean _returnList )
getCombinations ( )
getCookieValue ( string _url )
getCSRF ( string url , array[string] _data , string _referer )
getDepth ( )
getElementById ( string id )
getExtensionByMime ( string pathFileOnDisk )
getFeature ( string search , boolean _isCloserSearch , boolean _returnList )
getFeatures ( )
getFeatureValue ( int feature_id , string search , boolean _isCloserSearch , boolean _returnList )
getFeatureValues ( )
getFValueToFeature ( )
getHeaders ( string url , array[string] _data , string _referer , bool[default:true] _allowsRedirect )
getHost ( string url )
getManufacturer ( string search , boolean _isCloserSearch , boolean _returnList )
getManufacturers ( )
getMimeFromUrl ( string url )
getNbGoogleResults ( string searchExpression , string[default:google.com] search_engine , string[default:en] language , int[default:US] country , closure actionOnError )
getNumberOfUrlsToVisit ( )
getOrCreateCategory ( int idCategory , string categoryName , string parentCategoryID )
getOrCreateThreadObject ( string key , object _valNonExists )
getOrderAI ( string search , map list , boolean _isCloserSearch , boolean _returnList )
getPage ( string url , boolean _ignoreContentType )
getParentCategory ( int id_category )
getRegexUrlsExcluded ( )
getSharedOnlineConfiguration ( string name )
getSupplier ( string search , boolean _isCloserSearch , boolean _returnList )
getSuppliers ( )
getTestValue ( )
getValuesOfFeature ( int id_feature )
gzExtract ( string source , string destination )
hmacsha256 ( string key , string data )
htmlToPrice ( string html , int _nbOfDecimal )
httpHeader ( string headerName , string headerValue , boolean _temporary )
httpHeaderClear ( )
ignoreSynchronize ( boolean trueOrFalse )
imapRead ( string mailServer , string login , string password , array _filterQuery , string|default:content _typeOfReturn , string|default:993 _port , array _options )
interact ( string script )
isAttributeCode ( string attribute_code )
isEan13 ( string txt )
isEnd ( )
isFileExists ( string path )
isFirst ( )
isPeriodicLogin ( int frequency )
join ( array array , string|default:',' _separator , default:true _nullIsEmptyString )
jsonDecode ( string jsonText , boolean _convertToMap )
keepJustDeepestCategories ( boolean onOrOff )
keyKicker ( object key )
loadOrCreateObject ( string name , object objectValueIfCreated , bool|default:true _isDisplayWarning )
markAsVisited ( string url )
md5 ( string text )
md5File ( string path )
merge ( array_map list1 , array_map list2 , array_map ... )
mutliFunctionNow ( array calls )
nl2br ( string text )
nowFormat ( string format )
number ( string text , boolean|default:false _toInteger , boolean|default:false _canBeNegative )
numberOfRegex ( string regex , string _code )
openFile ( string path )
openUrl ( string url )
operation ( string operation )
parallelize ( list list , int nbThreads , closure method )
path ( string type )
permutations ( array array )
php ( string command )
phpBigCommandsByLine ( string commands , int delay[default:100] )
phpNow ( string command )
phpNowJson ( string command )
post ( string url , map[string:string] _postData , boolean _activeComplexEncodingDetection , string _referer )
postBinary ( string url , map[string:string] postData , string path )
postBody ( string url , string body , string _contentType )
postFile ( string url , map[string:string] postData , map _files , array _files_names )
proxyChange ( map arguments )
random ( int maxNumber , boolean|default:false _isInt )
randomUserAgent ( )
read ( string path )
readExcel ( string path , boolean isXLSXformat , int row , int column , int _sheet )
redirectionBehavior ( string behavior )
regex ( string regex , string _code , int _numberOfMask )
regexAll ( string regex , string _code , int _numberOfMask )
reinsertUploadedImagesInDescription ( string description , string _pathOnYourServer )
relToAbsLink ( string relativeLink , string base )
removeElement ( string code , string cssSelector )
removeNoASCIIChars ( string text )
removeOtherTagsThan ( string code , array listOfTags , boolean _withInnerHTML )
removeProductsNotVisited ( )
removeTags ( string code , array listOfTags , boolean _withInnerHTML )
replace ( object longString , object search , object replace )
replaceCookieField ( string cookieFieldName , string value , string _url )
replaceInAllLinks ( string regex , string _toReplace )
replaceInAllLinksNow ( string regex , string _toReplace )
replaceRegex ( object longString , object regexSearch , object replace )
reportUrlsToVisit ( )
reportVisitedUrls ( )
roundAt ( number number , float[default:1] _precision )
runLauncher ( string launcherName )
saveObject ( string name , object objectValue , int|default:1 _saveAllXiterations )
saveProgression ( )
select ( string cssSelector , string _code , string _selection )
selectAll ( string cssSelector , string _code , string _selection )
selectAllInCode ( string cssSelector , string _code , string _selection )
selectInCode ( string cssSelector , string _code , string _selection )
send ( )
sendCommandLine ( string command , boolean[default:false] _waitAndRetrunResult )
sendNowCommandsInStack ( )
sendStack ( list stack )
separateByRegexStart ( string regex , string _code )
serialize ( object object )
serpGoogle ( string searchExpression , int[default:1] page , string[default:google.com] search_engine , string[default:en] language , int[default:US] country , int[default:100] numberOfResults , bool[default:true] excludePDF , closure actionOnError )
setBingAccess ( string bingClientId , string location )
setCookie ( string url , array[string] _data , string _referer , int _frequency_refresh , string _method )
setCookieBody ( string url , string body , string _referer , int _frequency_refresh , string _method )
setCookieFile ( string url , array[string] _data , string _referer , int _frequency_refresh , map _files , array _files_names )
setCookieValue ( string cookie , string _url )
setDeeplAccess ( string apiKey )
setFrenglyAccess ( string email , string login )
setFrequencySending ( int frequency )
setGlobal ( string varName , string _objectToSet )
setGoogleAccess ( string token )
setMaxDepth ( int maxDepth )
setRegexUrlsExcluded ( string regex , boolean[default:false] _isKeepExpression )
setSharedOnlineConfiguration ( string name , string value )
setThreadObject ( string key , object value )
setTimeout ( int timeout )
setUserAgent ( string newUserAgent )
setWatsonAccess ( string whatsonKey , string serviceURL )
setYandexAccess ( string yandexKey )
shopifySQLRequest ( string graphQLrequest )
signedNumber ( string text , boolean|default:false _toInteger )
sizeInOctets ( object object )
sleep ( int milliseconds )
soapRequest ( string urlEndPoint , string xmlns , string soapAction , map entry , string _loginPass )
solveCaptcha ( string urlOfImage , string _imageExtension , string _pathToImagick , string _pathToTesseract )
split ( string textToExplode , string|default:',' _separator )
splitSentence ( string html , int _nbOfCaraters )
sql ( string query )
sqlEscape ( object toInsert )
sqlQuery ( string driver , string urlOfConnection , string login , string password , string sqlQuery , string|default:execute _returnType )
standardizeText ( string text , mixed _typeOfStandardization )
stopAndClose ( )
stripTags ( string html )
strPad ( string text , int length , string padCar , string text , string _padDirection )
substring ( string txt , int indexBegin , int _indexEnd )
synchronize ( object/string locker , closure method )
tableToArray ( string htmlOfTheTable )
timestamp ( )
toLowerCase ( string txt )
toString ( object obj1 , object obj2 , object ... )
toUpperCase ( string txt )
transformDate ( string txtDate , string formatFrom , string formatTo )
translateBing ( string text , string from , string to )
translateDeepl ( string text , string from , string to , boolean[default:false] useFreeApi )
translateFrengly ( string text , string from , string to )
translateGoogle ( string text , string from , string to )
translateMyMemory ( string text , string from , string to )
translateWatson ( string text , string from , string to )
translateYandex ( string text , string from , string to )
trim ( string txt )
trimCaracter ( string txt , string caracterToTrim )
trimRegex ( string txt , string regex , string|default:(?si) flags )
trimWithTags ( string txt )
try_ ( )
type ( object object )
unzip ( string zipPath , string destinationFolder )
updateCategories ( string _idLang )
updateCombinations ( string _idLang )
updateFeatures ( string _idLang )
updateManufacturers ( string _idLang )
updateSuppliers ( string _idLang )
upload ( string filepathOnYourDisk , string _pathOnYourServer , boolean|default:false _returnPathOnServer )
urlDecode ( string textOrUrl , boolean _excludeHttpCaracters )
urlEncode ( string textOrUrl , boolean _excludeHttpCaracters )
utf8Decode ( string text )
utf8Encode ( string text )
write ( string path , string text )
writeCacheToExcelFile ( string pathOrigine , boolean isXLSXformat , boolean _pathDestination )
writeEnd ( string path , string text )
writeInExcelCache ( string path , boolean isXLSXformat , object valueToWrite , int row , int column , int _sheet )