SproutCMS

This is the code documentation for the SproutCMS project

class Moderate

Source code (6 results)

/sprout/Controllers/AdminController.php   Highlighted file source

Line 1750: public function moderate()
Line 1766: $out = '<form action="SITE/admin/moderate_action" method="post">';
Line 1771: $inst = Sprout::instance($class, 'Sprout\Helpers\Moderate');
Line 1794: $out .= "<td class=\"mod\"><input type=\"radio\" name=\"moderate[{$class}][{$id}]\" value=\"app\" checked></td>";
Line 1795: $out .= "<td class=\"mod\"><input type=\"radio\" name=\"moderate[{$class}][{$id}]\" value=\"del\"></td>";
Line 1796: $out .= "<td class=\"mod\"><input type=\"radio\" name=\"moderate[{$class}][{$id}]\" value=\"\"></td>";
Line 1818: public function moderateAction()
Line 1823: if (@!is_array($_POST['moderate'])) $_POST['moderate'] = array();
Line 1829: foreach ($_POST['moderate'] as $class => $records) {
Line 1832: $inst = Sprout::instance($class, 'Sprout\Helpers\Moderate');
Line 1853: Url::redirect('admin/moderate');

/sprout/Controllers/AdminController.php   Highlighted file source

Line 1750: public function moderate()
Line 1766: $out = '<form action="SITE/admin/moderate_action" method="post">';
Line 1771: $inst = Sprout::instance($class, 'Sprout\Helpers\Moderate');
Line 1794: $out .= "<td class=\"mod\"><input type=\"radio\" name=\"moderate[{$class}][{$id}]\" value=\"app\" checked></td>";
Line 1795: $out .= "<td class=\"mod\"><input type=\"radio\" name=\"moderate[{$class}][{$id}]\" value=\"del\"></td>";
Line 1796: $out .= "<td class=\"mod\"><input type=\"radio\" name=\"moderate[{$class}][{$id}]\" value=\"\"></td>";
Line 1818: public function moderateAction()
Line 1823: if (@!is_array($_POST['moderate'])) $_POST['moderate'] = array();
Line 1829: foreach ($_POST['moderate'] as $class => $records) {
Line 1832: $inst = Sprout::instance($class, 'Sprout\Helpers\Moderate');
Line 1853: Url::redirect('admin/moderate');

/sprout/Helpers/AdminDashboard.php   Highlighted file source

Line 156: * A button to moderate content, if there is actually content to moderate
Line 168: if (! $inst instanceof Moderate) continue;

/sprout/Helpers/Moderate.php   Highlighted file source

Line 16: abstract class Moderate {

/sprout/views/admin/dashboard/moderation_button.php   Highlighted file source

Line 2: <a href="admin/moderate" class="button">Moderate now</a>

/sprout/views/admin/dashboard/moderation_button.php   Highlighted file source

Line 2: <a href="admin/moderate" class="button">Moderate now</a>

A total of 27 lines in 6 files were found