function RulesPlugin::export
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 1401
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;
}