File: /var/www/vhosts/creativefellows.nl/test.creativefellows.nl/figi/bu/classes/CategoryController.php
<?php
class CategoryController extends BaseController{
function __construct($section,$data){
$this->section = $section;
foreach($data as $key => $val)
{
$this->$key = $val;
}
//d($this);
}
public function getUrl()
{
return $this->vl($this->section["section_name"]) . ($this->url ? "/". $this->url."/" : "");
}
public function getName()
{
return $this->naam;
}
public function getCategoryUrl()
{
return $this->url;
}
public function getPostName()
{
return $this->vl( strtolower($this->getName()) );
}
public function isActive($category_name)
{
//echo $this->vl($category_name)." == ".$this->vl($this->getCategoryUrl());
//echo "<br />";
return $this->vl($category_name) == $this->vl($this->getCategoryUrl()) ? " active": "";
}
public function getEntries(){
return $this->entries;
}
}
?>