Docs - listing
07/31/2010: SUIT 2.0.1 and Rulebox 1.1.0 released.
Available Since: Rulebox (1.0.0)
Check if the variable is whitelisted or blacklisted and determine whether or not the variable can be used.
Whether or not the variable can be used.
<?php
require 'suit.class.php';
require 'templating.class.php';
$suit = new SUIT();
$templating = new Templating($suit);
$variable = array
(
'blacklist' => true,
'list' => array('restricted')
);
$result = $templating->listing('restricted', $variable);
// Result: false
?>
from rulebox import templating
variable = {
'blacklist': True,
'list': ['restricted']
}
result = templating.listing('restricted', variable)
# Result: False





