code: public function getForms()
  	{
  		if (!$this->User->isAdmin && !\is_array($this->User->forms))
  		{
  			return array();
  		}
  
  		$arrForms = array();
  		$objForms = $this->Database->execute("SELECT id, title FROM tl_form ORDER BY title");
  
  		while ($objForms->next())
  		{
  			if ($this->User->hasAccess($objForms->id, 'forms'))
  			{
  				$arrForms[$objForms->id] = $objForms->title . ' (ID ' . $objForms->id . ')';
  			}
  		}
  
  		return $arrForms;
  	}
docs: Get all forms and return them as array
  
  @return array