Example #1
0
 public function __set($key, $value)
 {
     if (in_array($key, ['success', 'error', 'alert', 'info'])) {
         $this->{$key}($value);
     } else {
         parent::__set($key, $value);
     }
 }
Example #2
0
 public function __get($key)
 {
     if ($key == 'mysql') {
         if (is_null($this->mysql)) {
             $this->mysql = MySQLConnect::getConnect();
         }
         return $this->mysql;
     }
     return parent::__get($key);
 }
Example #3
0
 /**
  * set array of conf
  * @param $array
  */
 public static function setArray($array)
 {
     self::$data = Assoc::merge(self::$data, $array);
 }
Example #4
0
						<div class="box-body">
							<div id="transHistory">
								<table id="example2" class="table table-bordered table-hover">
									<thead>
										<th>Association</th>
										<th>Start Date</th>
										<th>End Date</th>
									</thead>
									<tbody>
									<?php 
if (is_array($transfers)) {
    foreach ($transfers as $transfer) {
        ?>
									<tr>
										<td><?php 
        echo Assoc::find_by_id($transfer->assoc)->name;
        ?>
</td>
										<td><?php 
        echo strftime("%d %b %Y", $transfer->start);
        ?>
</td>
										<td><?php 
        if ($transfer->returned == 0) {
            echo "Not returned";
        } else {
            echo strftime("%d %b %Y", $transfer->returned);
        }
        ?>
</td>
									</tr>