示例#1
0
 public function testListStatuses()
 {
     $statuses = ae_CommentModel::listStatuses();
     $this->assertTrue(count($statuses) > 0);
     foreach ($statuses as $status) {
         $this->assertTrue(ae_CommentModel::isValidStatus($status));
     }
 }
示例#2
0
<?php

if ($area == 'category') {
    $statuses = ae_CategoryModel::listStatuses();
} else {
    if ($area == 'cofilter') {
        $statuses = ae_CommentfilterModel::listStatuses();
    } else {
        if ($area == 'comment') {
            $statuses = ae_CommentModel::listStatuses();
        } else {
            if ($area == 'media') {
                $statuses = ae_MediaModel::listStatuses();
            } else {
                if ($area == 'page') {
                    $statuses = ae_PageModel::listStatuses();
                } else {
                    if ($area == 'post') {
                        $statuses = ae_PostModel::listStatuses();
                    } else {
                        if ($area == 'user') {
                            $statuses = ae_UserModel::listStatuses();
                        }
                    }
                }
            }
        }
    }
}
$select = ae_Forms::selectStatus('bulk-status-change', $statuses);
if (isset($_GET['status']) && $_GET['status'] == 'trash') {