public function getAttributes ()
	{
		
		// If there are no attributes
		
		if ($this->attributeCache === FALSE)
		{
				
			// Set default attributes
			
			$this->attributeCache	= array ();
			
			// If there is a database table
			
			if ($this->get ('table'))
			{
				
				// Create new database tool
				
				$db	= new Db;
				
				// For each column
				
				foreach ($db->getColumns ($this->get ('database'), $this->get ('table')) as $column)
				{
					
					// Set attribute
					
					$attribute	= array (
						'get'	=> 'TRUE',
						'set'	=> 'TRUE'
					);
					
					$this->attributeCache[$column[0]]	= array_merge ($attribute, $db->parseColumn ($column));
					
				}
				
				// Get relationships
				
				$this->getRelations ();
				
			}
			
		}
		
		// Return attributes
		
		return $this->attributeCache;
		
	}