public function getRecords($filters = array())
	{
		$entries = self::all();

		$c = $entries->getTableName();
		$e = '#__extensions';

		$entries
			->select($c . '.*,' . $e . '.name')
			->join($e, $e . '.element', $c . '.component', 'inner')
			->whereEquals($e . '.type', 'component');

		if (isset($filters['component']) && $filters['component'])
		{
			$entries->whereEquals($e . '.element', $filters['component']);
		}

		return $entries
			->ordered($c . '.component', 'asc')
			->rows();
	}
public function getRecords($filters = array())
	{
		$entries = self::all();

		$c = $entries->getTableName();
		$e = '#__extensions';

		$entries
			->select($c . '.*,' . $e . '.name')
			->join($e, $e . '.element', $c . '.component', 'inner')
			->whereEquals($e . '.type', 'component');

		if (isset($filters['component']) && $filters['component'])
		{
			$entries->whereEquals($e . '.element', $filters['component']);
		}

		return $entries
			->ordered($c . '.component', 'asc')
			->rows();
	}
public function getRecords ( $ filters = array ( ) ) { $ entries = self :: all ( ) ; $ c = $ entries -> getTableName ( ) ; $ e = '#__extensions' ; $ entries -> select ( $ c . '.*,' . $ e . '.name' ) -> join ( $ e , $ e . '.element' , $ c . '.component' , 'inner' ) -> whereEquals ( $ e . '.type' , 'component' ) ; if ( isset ( $ filters [ 'component' ] ) && $ filters [ 'component' ] ) { $ entries -> whereEquals ( $ e . '.element' , $ filters [ 'component' ] ) ; } return $ entries -> ordered ( $ c . '.component' , 'asc' ) -> rows ( ) ; }
Defines a belongs to one relationship between newsletter and story

@return  object
Defines a belongs to one relationship between newsletter and story