HEX
Server: Apache
System: Linux v38079.2is.nl 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: democfellows (10015)
PHP: 8.1.34
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/creativefellows.nl/kjs.creativefellows.nl/src/KJS/SchoolLocatie.php
<?php
	
	namespace KJS;
	
	class SchoolLocatie
	{
		
		function __construct($data)
		{
			foreach($data as $key => $val)
			{	
				$this->$key = is_numeric($val) ? intval($val) : $val;
			}
			
		}
		
		public function name()
		{
			return $this->naam;
		}
		
		public function payoff()
		{
			return strip_tags($this->slogan);
		}
		
		public function website(){
			return $this->website;
		}
		
		
		public function setHTML($html)
		{
			$this->html = $html;
		}
		
		public function HTML()
		{
			return $this->html;
		}
		
		public function getProperty($property_name){
			return $this->$property_name;
		}		
		
		public function description()
		{
			return $this->omschrijving;
		}
		
		public function intro()
		{
			return $this->intro;
		}
		
		public function link()
		{
			return $this->url;
		}
		
		public function date($pattern)
		{
			return ucfirst(strftime($pattern ,strtotime( $this->datum)));		
		}
		

		public function time()
		{
			return $this->tijd;
		}
		
		public function uid()
		{
			return $this->unique_id;
		}
		
		
		public function logo($class=null){
			return  $this->logo ? '<img src="'. $this->logo .'" class="'. $class .'">' : null;
		}
		
	}

?>