public function RulesPlugin::export in Rules 7.2
Exports a rule configuration.
Parameters
string $prefix: An optional prefix for each line.
bool $php: (optional) Set to TRUE to format the export using PHP arrays. By default JSON is used.
Return value
The exported configuration.
See also
1 call to RulesPlugin::export()
- RulesPlugin::__toString in includes/
rules.core.inc - When converted to a string, just use the export format.
File
- includes/
rules.core.inc, line 1390 - Rules base classes and interfaces needed for any rule evaluation.
Class
- RulesPlugin
- Base class for rules plugins.
Code
public function export($prefix = '', $php = FALSE) {
$export = $this
->exportToArray();
return $this
->isRoot() ? $this
->returnExport($export, $prefix, $php) : $export;
}