コード例 #1
0
<?php

/**
 * Created by PhpStorm.
 * User: Antonshell
 * Date: 15.08.2015
 * Time: 17:59
 */
$payPal = new PaypalSinglePayment();
$userService = new UserService();
// get extraservices
$extraServices = ExtraService::getList();
//get selected user
$userId = $userService->getSelectedUser();
// get payments history
$payments = ExtraServiceUsers::getPaymentHistory($userId);
$config = Config::get();
?>

<script type="text/javascript">
    var extraServices = <?php 
echo json_encode($extraServices);
?>
;
</script>

<div class="row">
    <div class="col-md-3">
        <div class="form-group">
            <label for="extra_service">Extra Service</label>
            <select id="extra_service" class="form-control">
コード例 #2
0
 /**
  * @param $service_id
  * @param $user_id
  * @return ExtraServiceUsers
  */
 public static function getByExtraServiceItem($service_id, $user_id)
 {
     $object = new ExtraServiceUsers();
     $object->loadByExtraServiceItem($service_id, $user_id);
     return $object;
 }
コード例 #3
0
 /**
  * @param $userId
  */
 public function decrementItemCount($userId)
 {
     $extraService = new ExtraServiceUsers();
     $extraService->decrementItemsCount($this->id, $userId);
 }