add a search condition to a given CMS_object_search object
static
boolean
addSearchCondition
(
&$search,
array $tagAttributes,
CMS_object_search $search)
-
CMS_object_search
$search: : the reference search object which need the condition
-
array
$tagAttributes: &tagAttributes : represent atm-search-param attributes
-
&$search
Enclose a given string with double quotes or single quotes according to reverse value
static mixed
encloseString
(mixed $var, boolean $reverse)
-
mixed
$var: : the var to enclose
-
boolean
$reverse: : enclose with double or single quotes
Enclose a given var with CMS_polymod_definition_parsing::prepareVar method
static mixed
encloseWithPrepareVar
(mixed $var)
-
mixed
$var: : the var to enclose
Return an unique ID formatted as id_rand where id is the number of unique ids queried and rand a 6 alphanumerical random characters string
static string
getUniqueID
()
Enclose a given var with quotes or return count if var is an array
static mixed
prepareVar
(mixed $var)
-
mixed
$var: : the var to enclose
Replace vars like {something}
static text
replaceVars
(string $text, array $replacement)
-
string
$text: : the text which need to be replaced
-
array
$replacement: : optionnal replacement to do
Check tags attributes requirements
string
checkTagRequirements
( &$tag, array $requirements, array $tag)
-
array
$tag: : the reference tag to compute
-
array
$requirements: : tag attributes requirements at the following format :
-
&$tag
Compute recursively all parsed definition tags and send them to callback methods (according to $this->_tagsCallBack)
string
computeTags
(multidimentionnal $definition, [integer $level = 0])
-
integer
$level: : the current level of recursion (default : 0)
-
multidimentionnal
$definition: array $definition : the definition to compute
Return block params for current definition only in self::BLOCK_PARAM_MODE
multidimentionnal
getBlockParams
()
Get the parsing content only with self::PARSE_MODE
string
getContent
([constant $type = self::OUTPUT_RESULT], &$parameters, array $parameters)
-
constant
$type: : the content type to return in :
- self::OUTPUT_RESULT output evalued PHP result
- self::OUTPUT_PHP output valid PHP to execute
-
array
$parameters: parameters to help parsing
-
&$parameters
Return parsing errors founded during parsing test only in self::CHECK_PARSING_MODE
string
getParsingError
()
Constructor.
initialize object.
void
__construct
(string $definition, [boolean $parse = true], [constant $mode = self::PARSE_MODE], [string $module = false], [integer $visualizationMode = PAGE_VISUALMODE_HTML_PUBLIC])
-
string
$definition: the definition to parse
-
boolean
$parse: : completely parse the given definition (default is true) or only replace values in it
-
constant
$mode: : the current parsing mode in : self::PARSE_MODE : Parse definition (default) self::CHECK_PARSING_MODE : Check for definition parsing errors self::BLOCK_PARAM_MODE : Get definition block parameters form
-
string
$module: : the current module codename which use this definition. this parameter is optionnal but it can enforce definition parsing requirements (used to verify specific modules languages for now).
-
integer
$visualizationMode: The current visualization mode (see constants in cms_rc.php for accepted values).
Replace vars like {object:field:type} or {var|session|request|page:name:type}. Called during definition compilation
text
preReplaceVars
(string $text, [boolean $reverse = false], [boolean $cleanNotMatches = false], [mixed $matchCallback = array('CMS_polymod_definition_parsing', 'encloseString')], [ $returnMatchedVarsArray = false], array $optionalReplacement)
-
string
$text: : the text which need to be replaced
-
array
$optionalReplacement: : optionnal replacement to do
-
boolean
$cleanNotMatches: : remove vars without matches
-
mixed
$matchCallback: : function name or array(object classname, object method) which represent a valid callback function to execute on matches
-
boolean
$reverse: reverse : reverse single and double quotes useage (default is false : double quotes)
-
$returnMatchedVarsArray
Compute an atm-cache-reference tag
void
_cacheReference
(array $tag)
-
array
$tag: : the reference atm-cache-reference tag to compute
Compute an atm-form-callback tag
void
_formCallback
( &$tag, array $tag)
-
array
$tag: : the reference atm-form-callback tag to compute
-
&$tag
Compute an atm-form-required or atm-form-malformed tag
string
_formRequirementsTag
( &$tag, array $tag)
-
array
$tag: : the reference atm-form-required or atm-form-malformed tag to compute
-
&$tag
Compute an atm-form tag
string
_formTag
( &$tag, array $tag)
-
array
$tag: : the reference atm-form tag to compute
-
&$tag
Compute an atm-function tag
string
_functionTag
( &$tag, array $tag)
-
array
$tag: : the reference atm-function tag to compute
-
&$tag
Compute an atm-input-callback tag
string
_inputCallback
( &$tag, array $tag)
-
array
$tag: : the reference atm-input-callback tag to compute
-
&$tag
Compute an atm-input tag
string
_inputTag
( &$tag, array $tag)
-
array
$tag: : the reference atm-input tag to compute
-
&$tag
Compute an atm-object-link tag
string
_linkObject
( &$tag, array $tag)
-
array
$tag: : the reference atm-object-link tag to compute
-
&$tag
Compute an atm-loop tag
string
_loopTag
( &$tag, array $tag)
-
array
$tag: : the reference atm-loop tag to compute
-
&$tag
DEPRECATED : Compute an atm-parameter tag
string
_parameterTag
( &$tag, array $tag)
-
array
$tag: : the reference atm-parameter tag to compute
-
&$tag
Compute an atm-plugin-invalid tag
string
_pluginInvalidTag
( &$tag, array $tag)
-
array
$tag: : the reference atm-plugin-invalid tag to compute
-
&$tag
Compute an atm-plugin tag
string
_pluginTag
( &$tag, array $tag)
-
array
$tag: : the reference atm-plugin tag to compute
-
&$tag
Compute an atm-plugin-valid tag
string
_pluginValidTag
( &$tag, array $tag)
-
array
$tag: : the reference atm-plugin-valid tag to compute
-
&$tag
Compute an atm-plugin-view tag
string
_pluginViewTag
( &$tag, array $tag)
-
array
$tag: : the reference atm-plugin-invalid tag to compute
-
&$tag
Compute an atm-rss-item-xxx tag
string
_RSSItemContentTag
( &$tag, array $tag)
-
array
$tag: : the reference atm-rss-item-xxx tag to compute
-
&$tag
Compute an atm-rss-item tag
string
_RSSItemTag
( &$tag, array $tag)
-
array
$tag: : the reference atm-rss-item tag to compute
-
&$tag
Compute an atm-rss tag
string
_RSSTag
( &$tag, array $tag)
-
array
$tag: : the reference atm-rss tag to compute
-
&$tag
Compute an atm-search-page or atm-search-limit tag
string
_searchLimitTag
( &$tag, array $tag)
-
array
$tag: : the reference tag to compute
-
&$tag
Compute an atm-noresult tag
string
_searchNoResultTag
( &$tag, array $tag)
-
array
$tag: : the reference atm-noresult tag to compute
-
&$tag
Compute an atm-search-order tag
string
_searchOrderTag
( &$tag, array $tag)
-
array
$tag: : the reference atm-search-order tag to compute
-
&$tag
Compute an atm-search-param tag
string
_searchParamTag
( &$tag, array $tag)
-
array
$tag: : the reference atm-search-param tag to compute
-
&$tag
Compute an atm-result tag
string
_searchResultTag
( &$tag, array $tag)
-
array
$tag: : the reference atm-result tag to compute
-
&$tag
Compute an atm-search tag
string
_searchTag
( &$tag, array $tag)
-
array
$tag: : the reference atm-search tag to compute
-
&$tag
Inherited Methods
Inherited From CMS_grandFather
CMS_grandFather::autoload()
CMS_grandFather::hasError()
CMS_grandFather::log()
CMS_grandFather::PHPErrorHandler()
CMS_grandFather::raiseError()
CMS_grandFather::setDebug()
CMS_grandFather::setLog()
CMS_grandFather::_raiseError()
CMS_grandFather::__call()