public function generateAttributes ()
	{
		
		// Get attributes and relationships
		
		$attributes	= $this->getAttributes ();
		
		$this->addLine ('protected static $attributes = array (');
		$this->tabUp (FALSE);
		
		// Add each attribute
		
		foreach ($attributes as $name => $attribute)
		{
			
			$this->addLine ($this->tabVals ('\'' . $name . '\'', 'array (', 4, '=> '));
			$this->tabUp (FALSE);
			
			foreach ($attribute as $key => $val)
			{
				
				switch ($key)
				{
					
					case 'charset':
					case 'relation':
						
						$val	= '\'' . $val . '\'';
						break;
					
					case 'valid':
					case 'values':
						
						$val	= 'array (' . $val . ')';
						break;
					
				}
				
				$this->addLine ($this->tabVals ('\'' . $key . '\'', $val . ',', 3, '=> '));
				
			}
			
			// Remove last ,

			if (substr ($this->class, -2) == ",\n")
			{
				$this->class	= substr ($this->class, 0, -2) . "\n";
			}
			
			$this->tabDown (FALSE);
			$this->addLine ('),');
			
		}
		
		// Remove last ,

		if (substr ($this->class, -2) == ",\n")
		{
			$this->class	= substr ($this->class, 0, -2) . "\n";
		}
		
		// End attributes
		
		$this->tabDown (FALSE);
		$this->addLine (');');
		
	}