public function getProperties($filter = '')
{
$properties = $this->db->Execute("SELECT * FROM `role_properties` WHERE `role_id` = ?" . ($filter ? " AND name LIKE " . $this->db->qstr('%' . $filter . '%') : ''), array($this->id));
$retval = array();
while ($property = $properties->FetchRow()) {
$retval[$property['name']] = $property['value'];
}
return $retval;
}