Resources/contao/dca/tl_page.php
public function getTrackingConfigurations()
   	{
   		/*if (!$this->User->isAdmin && !is_array($this->User->forms))
   		{
   			return array();
   		}*/

   		$arrTrackingConfigurations = array();
   		$objTrackingConfigurations = $this->Database->execute("SELECT id, name FROM tl_c4g_tracking ORDER BY name");

   		while ($objTrackingConfigurations->next())
   		{
   			//if ($this->User->isAdmin || $this->User->hasAccess($objForms->id, 'forms'))
   			//{
            $arrTrackingConfigurations[$objTrackingConfigurations->id] = $objTrackingConfigurations->name . ' (ID ' . $objTrackingConfigurations->id . ')';
   			//}
   		}

   		return $arrTrackingConfigurations;
   	}
public function getTrackingConfigurations()
   	{
   		/*if (!$this->User->isAdmin && !is_array($this->User->forms))
   		{
   			return array();
   		}*/

   		$arrTrackingConfigurations = array();
   		$objTrackingConfigurations = $this->Database->execute("SELECT id, name FROM tl_c4g_tracking ORDER BY name");

   		while ($objTrackingConfigurations->next())
   		{
   			//if ($this->User->isAdmin || $this->User->hasAccess($objForms->id, 'forms'))
   			//{
            $arrTrackingConfigurations[$objTrackingConfigurations->id] = $objTrackingConfigurations->name . ' (ID ' . $objTrackingConfigurations->id . ')';
   			//}
   		}

   		return $arrTrackingConfigurations;
   	}
public function getTrackingConfigurations ( ) { /*if (!$this->User->isAdmin && !is_array($this->User->forms))
   		{
   			return array();
   		}*/ $ arrTrackingConfigurations = array ( ) ; $ objTrackingConfigurations = $ this -> Database -> execute ( "SELECT id, name FROM tl_c4g_tracking ORDER BY name" ) ; while ( $ objTrackingConfigurations -> next ( ) ) { //if ($this->User->isAdmin || $this->User->hasAccess($objForms->id, 'forms')) //{ $ arrTrackingConfigurations [ $ objTrackingConfigurations -> id ] = $ objTrackingConfigurations -> name . ' (ID ' . $ objTrackingConfigurations -> id . ')' ; //} } return $ arrTrackingConfigurations ; }
Get all trcking-configurations and return them as array
@return array
Get all trcking - configurations and return them as array