<?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();

<?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();

--- 
+++ 
@@ -4,6 +4,11 @@
 
 class Module extends \ATP\ActiveRecord
 {
+	public function displayName()
+	{
+		return $this->name;
+	}
+
 	public function getActiveModules()
 	{
 		return $this->loadMultiple("is_active = 1");
Change module model display name from id to name
