Esempio n. 1
0
 public function InitializeContent()
 {
     $this->title = localize("ratings.title");
     $this->entryArray = Rating::getAllRatings();
     $this->idPage = Rating::ALL_RATING_ID;
 }
Esempio n. 2
0
                <div class="form-group">
                    <?php 
    if ($review == null) {
        ?>
                        Submit
                    <?php 
    } else {
        ?>
                        Update
                    <?php 
    }
    ?>
                    User Review
                    <select name="submit_game_rating" class="form-control">
                        <?php 
    $ratings = Rating::getAllRatings();
    ?>
                        <?php 
    foreach ($ratings as $rating) {
        ?>
                            <?php 
        if ($review != null && $review->getRatingId() == $rating->getId()) {
            ?>
                                <option value="<?php 
            echo $rating->getId();
            ?>
"
                                        selected="selected"><?php 
            echo $rating->getTitle();
            ?>
</option>