phpMv -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
Config.php
Go to the documentation of this file.
1<?php
2
3namespace Ajax\config;
4
5class Config {
6 protected $vars;
7
8 public function __construct($vars) {
9 $this->vars=$vars;
10 }
11
12 public function setVar($name, $values) {
13 $this->vars [$name]=$values;
14 return $this;
15 }
16
17 public function getVar($name) {
18 return $this->vars [$name];
19 }
20
21 public function getVars() {
22 return $this->vars;
23 }
24
25 public function setVars($values) {
26 $this->vars=$values;
27 return $this;
28 }
29
30 public function addVars($values) {
31 $this->vars=array_merge($this->vars, $values);
32 return $this;
33 }
34}
setVars($values)
Definition Config.php:25
addVars($values)
Definition Config.php:30
setVar($name, $values)
Definition Config.php:12
__construct($vars)
Definition Config.php:8