\SearchCore

Summary

Methods
Properties
Constants
sanitize()
find()
getTags()
getAttributes()
getFeatures()
indexation()
removeProductsSearchIndex()
searchTag()
No public properties found
No constants found
getProductsToIndex()
setProductsAsIndexed()
saveIndex()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

sanitize()

sanitize(  $string,   $id_lang,   $indexation = false,   $iso_code = false) 

Parameters

$string
$id_lang
$indexation
$iso_code

find()

find(  $id_lang,   $expr,   $page_number = 1,   $page_size = 1,   $order_by = 'position',   $order_way = 'desc',   $ajax = false,   $use_cookie = true, \Context  $context = null) 

Parameters

$id_lang
$expr
$page_number
$page_size
$order_by
$order_way
$ajax
$use_cookie
\Context $context

getTags()

getTags(  $db,   $id_product,   $id_lang) 

Parameters

$db
$id_product
$id_lang

getAttributes()

getAttributes(  $db,   $id_product,   $id_lang) 

Parameters

$db
$id_product
$id_lang

getFeatures()

getFeatures(  $db,   $id_product,   $id_lang) 

Parameters

$db
$id_product
$id_lang

indexation()

indexation(  $full = false,   $id_product = false) 

Parameters

$full
$id_product

removeProductsSearchIndex()

removeProductsSearchIndex(  $products) 

Parameters

$products

searchTag()

searchTag(  $id_lang,   $tag,   $count = false,   $pageNumber,   $pageSize = 10,   $orderBy = false,   $orderWay = false,   $useCookie = true, \Context  $context = null) 

Parameters

$id_lang
$tag
$count
$pageNumber
$pageSize
$orderBy
$orderWay
$useCookie
\Context $context

getProductsToIndex()

getProductsToIndex(  $total_languages,   $id_product = false,   $limit = 50,   $weight_array = array()) 

Parameters

$total_languages
$id_product
$limit
$weight_array

setProductsAsIndexed()

setProductsAsIndexed(  $products) 

Parameters

$products

saveIndex()

saveIndex(  $queryArray3) 

$queryArray3 is automatically emptied in order to be reused immediatly

Parameters

$queryArray3