src/User/Sync.php
public static function getLogData($syncid, $type = 'all', $limitstart = null, $limit = null, $sort = 'id', $dir = 'ASC')
	{
		$db = Factory::getDBO();

		$query = $db->getQuery(true)
			->select('*')
			->from('#__jfusion_sync_details')
			->where('syncid = ' . $db->quote($syncid));

		if (!empty($sort)) {
			$query->order($sort . ' ' . $dir);
		}

		if ($type != 'all') {
			$query->where('action = ' . $db->quote($type));
		}

		$db->setQuery($query, $limitstart, $limit);
		$results = $db->loadObjectList('id');

		return $results;
	}
public static function getLogData($syncid, $type = 'all', $limitstart = null, $limit = null, $sort = 'id', $dir = 'ASC')
	{
		$db = Factory::getDBO();

		$query = $db->getQuery(true)
			->select('*')
			->from('#__jfusion_sync_details')
			->where('syncid = ' . $db->quote($syncid));

		if (!empty($sort)) {
			$query->order($sort . ' ' . $dir);
		}

		if ($type != 'all') {
			$query->where('action = ' . $db->quote($type));
		}

		$db->setQuery($query, $limitstart, $limit);
		$results = $db->loadObjectList('id');

		return $results;
	}
public static function getLogData ( $ syncid , $ type = 'all' , $ limitstart = null , $ limit = null , $ sort = 'id' , $ dir = 'ASC' ) { $ db = Factory :: getDBO ( ) ; $ query = $ db -> getQuery ( true ) -> select ( '*' ) -> from ( '#__jfusion_sync_details' ) -> where ( 'syncid = ' . $ db -> quote ( $ syncid ) ) ; if ( ! empty ( $ sort ) ) { $ query -> order ( $ sort . ' ' . $ dir ) ; } if ( $ type != 'all' ) { $ query -> where ( 'action = ' . $ db -> quote ( $ type ) ) ; } $ db -> setQuery ( $ query , $ limitstart , $ limit ) ; $ results = $ db -> loadObjectList ( 'id' ) ; return $ results ; }
Retrieve log data

@param string $syncid the usersync id
@param string $type
@param int $limitstart
@param int $limit
@param string $sort
@param string $dir

@return stdClass[] nothing
Retrieve log data