/**
* Sets a script running on the backend.
*
* @param array $script The filter script information. Passed elements:
* - 'name': (string) the script name.
* - 'recipes': (array) the filter recipe objects.
* - 'script': (string) the filter script.
*
* @throws Ingo_Exception
*/
public function setScriptActive($script)
{
$this->_connect();
try {
foreach ($script['recipes'] as $recipe) {
$this->_db->execute($recipe['object']->generate());
}
} catch (Horde_Db_Exception $e) {
throw new Ingo_Exception($e);
}
}