<?php

namespace ATPCore\Model;

class Module extends \ATP\ActiveRecord
{
	public function getActiveModules()
	{
		return $this->loadMultiple("is_active = 1");
	}
	
	public function getActiveModuleNames()
	{
		$names = array();
		foreach($this->getActiveModules() as $module)
		{
			$names[] = $module->name;
		}
		
		return $names;
	}
}
Module::init();

<?php

namespace ATPCore\Model;

class Module extends \ATP\ActiveRecord
{
	public function displayName()
	{
		return $this->name;
	}

	public function getActiveModules()
	{
		return $this->loadMultiple("is_active = 1");
	}
	
	public function getActiveModuleNames()
	{
		$names = array();
		foreach($this->getActiveModules() as $module)
		{
			$names[] = $module->name;
		}
		
		return $names;
	}
}
Module::init();

Change module model display name from id to name
Change module model display name from id to name
