Grimport functions

abs ( number number )
actionClose ( closure action )
actionError ( closure action )
actionHttpError ( closure action )
actionHttpRedirect ( closure action )
actionScriptEnd ( closure action )
activeFlexibleComparaison ( boolean trueOrFalse )
add ( object element )
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 , string _title )
allowCommandSending ( )
antiCaptcha ( string apiKey , string type , map options )
arrayContains ( list/map array , object search , boolean[default:true] _byValue )
arrayDifferences ( array reference , array toCompare , boolean[default:true] _mirror )
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 )
autres ( string _message , string _default_value , string _title )
await ( int milliseconds )
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 )
changeScriptPropertyAndSave ( map propertiesToChange , int _uniqueId )
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 ( )
clearMultiServerData ( string _id , string serverName )
clipboard ( )
clone ( object object )
confirm ( string _message , string _title , string[] _choices )
console ( string message , boolean[default:false] withoutLineBreak , boolean[default:false] displayThreadId )
contains ( object longString , object search )
containsRegex ( string regex , string _code )
copy ( string source , string destination )
count ( object object )
crop ( string pathImageOrigine , int x , int y , int width , int height , string _pathCroppedImage )
csv ( string path , array[string] data , string _separator , string _quoteChar , string _escapeChar )
csvToArray ( string path , string _separator , string _lineEnd , string _encoding )
cutAtWord ( string txt , int nbChars )
delete ( string path )
deleteObject ( string name )
display ( string message , boolean[default:false] withoutLineBreak , boolean[default:false] displayThreadId )
displayCommands ( )
displayUrlCrawled ( )
distributeMultiServers ( mixed listOrElement , array[string] serverNameList , string _id , bool[default:false] _iterativeMode , map[string=>float] _serverCoefficients )
dontAddLinks ( )
download ( string url , string path , array[string] _data )
ean12ToEan13 ( string ean12 )
elementToArray ( string code )
equals ( object compare1 , object compare2 )
equalsIgnoreCase ( object compare1 , object compare2 )
evaluate ( string code )
excludeUrlsToVisit ( string regex )
extract ( string zipPath , string destinationFolder , string _type )
findAndValidateFinalLinksForQueue ( int|default:1 _nbTasks , regex _regexExclusion )
firefox ( string actionType , string _actionArgument1 , string _actionArgument2 , string _actionArgument3 )
formatDate ( string format , long timestamp , string _locale , boolean _returnObject )
formatPrice ( number number , string country )
ftpDownload ( string server , string login , string password , string pathOnServer , string pathOnDisk , int _port , string _protocol )
ftpList ( string server , string login , string password , string path , int _port , string _protocol )
ftpRemove ( string server , string login , string password , string path , int _port , string _protocol )
ftpUpload ( string server , string login , string password , string pathServer , string pathDisk , int _chmod , int _port , string _protocol )
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 )
fuzzyRegex ( string regex , string _code , float _threshold )
generateCombinations ( array ids_attributes_of_combination1 , array ids_attributes_of_combination2 , array ... )
generateCombinationsWithAttributeCodes ( array maps )
generateReference ( string _germ , int _size , int _base )
get ( array/map/list arrayOrMap , object indexLevel1 , object indexLevel2 , object ... )
getAllOptimizedParameters ( mixed _complete , string _idOptimSystem )
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 )
getCloudIdServer ( )
getCombination ( string search , boolean _isCloserSearch , boolean _returnList )
getCombinations ( )
getCookies ( string url )
getCookieValue ( string _url )
getCSRF ( string url , array[string] _data , string _referer )
getDepth ( )
getElementById ( string id )
getExtensionByMime ( string pathFileOnDisk , bool[default:false] isMimeString )
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 )
getLaunchOptions ( )
getManufacturer ( string search , boolean _isCloserSearch , boolean _returnList )
getManufacturers ( )
getMimeFromUrl ( string url )
getNbCrawlingInProgess ( )
getNbGoogleResults ( string searchExpression , string[default:google.com] search_engine , string[default:en] language , int[default:US] country , closure actionOnError , string method )
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 , proxy _proxy , map[string:string] _httpHeaders , boolean _completeReturn )
getParentCategory ( int id_category )
getPerformanceStats ( )
getRegexUrlsExcluded ( )
getScriptProperty ( string property )
getSharedOnlineConfiguration ( string name , string _id )
getSupplier ( string search , boolean _isCloserSearch , boolean _returnList )
getSuppliers ( )
getTestValue ( )
getValuesOfFeature ( int id_feature )
gzExtract ( string source , string destination )
hmacsha256 ( string key , string data )
htmlEntitiesEncode ( string text )
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 )
importFile ( string path )
importScript ( string idUnique , string _type )
indexOf ( string text , string toFind , int _fromIndex , bool[default:false] _fromEnd )
interact ( string script )
intersect ( array reference , array toCompare )
isArray ( object object )
isAttributeCode ( string attribute_code )
isCloud ( )
isEan13 ( string txt )
isEnd ( )
isFileExists ( string path )
isFirst ( )
isGlobalDefined ( string variableName )
isLinux ( )
isMac ( )
isPeriodicLogin ( int frequency )
isWindows ( )
join ( array array , string|default:',' _separator , default:true _nullIfEmptyString )
jsonDecode ( string jsonText , boolean _convertToMap )
jsonEncode ( object object )
keepJustDeepestCategories ( boolean onOrOff )
keyKicker ( object key )
keys ( map array )
listFiles ( string path , boolean[default:false] returnCompletePath , boolean[default:false] includeSubFolders , boolean[default:all] filesAndDirs )
loadOrCreateObject ( string name , object objectValueIfCreated , bool|default:true _isDisplayWarning , string _pathFile )
mail ( string email , string subject , string _message , list _attachments )
markAsVisited ( string url )
max ( object compare1 , object compare2 , object ... )
md5 ( string text )
md5File ( string path )
merge ( array_map list1 , array_map list2 , array_map ... )
min ( object compare1 , object compare2 , object ... )
mkdir ( string path )
mutliFunctionNow ( array calls )
nl2br ( string text )
nowFormat ( string format , string _locale )
number ( string text , boolean|default:false _toInteger , boolean|default:false _canBeNegative )
numberOfRegex ( string regex , string _code )
ocr ( string pathImage , string pathImageMagick , string _pathTesseract , string _debug )
openFile ( string path )
openUrl ( string url )
operation ( string operation )
optimizeConfiguredParameters ( closure costFunction , boolean _maximize , boolean _fastButLessAccurate , boolean _verboseReturn , map _hyperparameters , string _idOptimSystem )
optimizedParameter ( string parameterIdentifier , number _minimum , number _maximum , number _initial , number _initialStep , string _idOptimSystem , number _forceOptimizedValue )
parallelize ( list list , int nbThreads , closure method , int _verbose )
partitionImage ( string pathImageOrigine , int _blocHeight , int _blocWidth , boolean[default:true] _crop , int _pathFrameImage )
path ( string type )
pdfToImage ( int pdfPath , int _resolution[default:300] , string _imageDirectory )
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 , proxy _proxy , map[string:string] _httpHeaders )
postBinary ( string url , map[string:string] postData , string path )
postBody ( string url , string body , string _contentType , proxy _proxy , map[string:string] _httpHeaders )
postFile ( string url , map[string:string] postData , map _files , array _files_names )
print ( string message , boolean[default:false] withoutLineBreak , boolean[default:false] displayThreadId )
prompt ( string _message , string _default_value , string _title )
proxyChange ( map arguments )
put ( object key , object value )
random ( number maxNumber , boolean|default:false _isInt , number _minNumber )
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 )
regexReallyAll ( string regex , string _code , int _numberOfMask , bool[default:true] _afterEndOfMask )
reinsertUploadedImagesInDescription ( string description , string _pathOnYourServer )
relToAbsLink ( string relativeLink , string base )
remove ( array/map/list arrayOrMap , object[default:0] _index )
removeElement ( string code , string cssSelector )
removeNoASCIIChars ( string text )
removeOtherTagsThan ( string code , array listOfTags , boolean _withInnerHTML )
removeProductsNotVisited ( )
removeTags ( string code , array listOfTags , boolean _withInnerHTML )
removeWatermark ( string orignalImage , string _destinationImage , array _minThresholdWatermark , array _maxThresholdWatermark , boolean _isHSV , int _radiusNeighboringPixels )
replace ( object longString , object search , object replace )
replaceAccents ( boolean text )
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 ( )
resizeImage ( string orignalImage , mixed resizing , string _destinationImage , int _onlyIfHeightGreater , boolean _onlyIfWidthGreater )
reverse ( list/array list )
rotateImage ( string orignalImage , float angle , string _destinationImage , int _xRotationPoint , int _yRotationPoint )
roundAt ( number number , float[default:1] _precision )
runLauncher ( string launcherName )
runScript ( int idUniqueScript )
saveObject ( string name , object objectValue , int|default:1 _saveAllXiterations , string _pathFile )
saveProgression ( )
screenshot ( int _X , int _Y , int _height , int _width , string _path , int _screen )
select ( string cssSelector , string _code , string _selection )
selectAll ( 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 language , string country , int[default:10] numberOfResults , bool[default:true] excludePDF , closure actionOnError , string method )
setBingAccess ( string bingClientId , string location )
setClipboard ( string text )
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 cookieSetValue , string _url , boolean _reuseOldCookies )
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 , string _id )
setThreadObject ( string key , object value )
setTimeout ( int timeout )
setUserAgent ( string newUserAgent )
setWatsonAccess ( string whatsonKey , string serviceURL )
setYandexAccess ( string yandexKey )
shopifySQLRequest ( string graphQLrequest )
shuffle ( list/array list )
signedNumber ( string text , boolean|default:false _toInteger )
sizeInOctets ( object object )
sleep ( int milliseconds )
soapRequest ( string urlEndPoint , string xmlns , string soapAction , map entry , string _loginPass )
sort ( list list , bool[default:true] ascending , bool byKey )
split ( string textToExplode , string|default:',' _separator )
splitRegex ( string textToExplode , string|default:',' _regex )
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 )
ssh ( string server , string login , string password , string command , int _port , boolean[default:false] _x11 , boolean[default:true] _waitReturn , int[default:300] _maxDelayWaitReturn )
standardizeText ( string text , mixed _typeOfStandardization )
stopAndClose ( )
straightenImage ( string orignalImage , string _destinationImage , double _reduction , string _debugImage , int _lineFactor , int _threshold1 , int _threshold2 )
stripTags ( string html )
strPad ( string text , int length , string padCar , string _padDirection )
substring ( string txt , int indexBegin , int _indexEnd )
synchronize ( object/string locker , closure method )
tableToArray ( string htmlOfTheTable )
textualSimilarity ( string compare1 , string compare2 )
threadId ( )
timestamp ( )
toLowerCase ( string txt )
toString ( object obj1 , object obj2 , object ... )
toUpperCase ( string txt )
transformDate ( string txtDate , string formatFrom , string formatTo , string _localeFrom , string _localeTo )
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 , boolean _use%20insteadOf+ )
useClosureToExcludeLinks ( closure closure )
utf8Decode ( string text )
utf8Encode ( string text )
values ( map array )
waitAndgetMultiServerData ( string serverName , string _id , bool[default:false] _dontWait )
waitDelay ( float delay , string locker )
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 )
zipExtract ( string zipPath , string destinationFolder )