__construct()
__construct(array $options = array())
Constructs a script filter container
Parameters
array | $options | specify options:... see>>>? |
Creates Script Filter XML for Alfred
Example usage:
$script_filter = new Alphred\ScriptFilter( ['error_on_empty'] => true );
$script_filter->add_result( new Alphred\Result([
'title' => 'This is a title',
'subtitle' => 'This is a subtitle',
'valid' => false
]));
$script_filter->to_xml();
add_result(\Alphred\Result $result)
Adds a result into the script filter
\Alphred\Result | $result | an Alphred\Result object |