コード例 #1
0
<?php

namespace ArticleRatings\Admin;

$listGroups = \ArticleRatings\PollGroups::listGroups();
// Load views
require_once AR_PLUGIN_DIR . '/admin/views/polls/poll-groups.v.php';
コード例 #2
0
<?php

namespace ArticleRatings\Admin;

//d($_GET['group-id']);
$result = \ArticleRatings\PollGroups::deleteGroup($_GET['group-id']);
// Load views
//require_once( AR_PLUGIN_DIR . '/admin/views/polls/poll-group-delete.v.php');
コード例 #3
0
<?php

namespace ArticleRatings\Admin;

//$formSubmitted = filter_input(INPUT_POST, 'save-new-poll-group') ? true : false;
$viewPollGroupModuleURL = \ArticleRatings\URLs::moduleURL('poll-group-edit') . '&poll-group-id=1';
$createPollGroupModuleURL = \ArticleRatings\URLs::moduleURL('poll-group-create');
if (filter_input(INPUT_POST, 'save-new-poll-group')) {
    $createGroupResult = \ArticleRatings\PollGroups::createGroup($_POST);
    d($createGroupResult);
}
// Load views
require_once AR_PLUGIN_DIR . '/admin/views/polls/poll-group-create.v.php';
コード例 #4
0
<?php

namespace ArticleRatings\Admin;

if (isset($_POST['save-new-poll-group'])) {
    d($_POST);
    $editSubmit = \ArticleRatings\PollGroups::editGroup($_POST);
    d($editSubmit);
}
$getGroupData = \ArticleRatings\PollGroups::showGroup($_GET['group-id']);
// Load views
require_once AR_PLUGIN_DIR . '/admin/views/polls/poll-group-edit.v.php';