public function getFirstVisitForVisitorId($idSite, $visitorId)
    {
        Piwik::checkUserHasSomeViewAccess();

        if (empty($visitorId)) {
            return new DataTable();
        }

        $model = new Model();
        $data = $model->queryLogVisits($idSite, false, false, false, 0, 1, $visitorId, false, 'ASC');
        $dataTable = $this->makeVisitorTableFromArray($data);
        $this->addFilterToCleanVisitors($dataTable, $idSite, false, true);

        return $dataTable;
    }
public function getFirstVisitForVisitorId($idSite, $visitorId)
    {
        Piwik::checkUserHasSomeViewAccess();

        if (empty($visitorId)) {
            return new DataTable();
        }

        $model = new Model();
        $data = $model->queryLogVisits($idSite, false, false, false, 0, 1, $visitorId, false, 'ASC');
        $dataTable = $this->makeVisitorTableFromArray($data);
        $this->addFilterToCleanVisitors($dataTable, $idSite, false, true);

        return $dataTable;
    }
public function getFirstVisitForVisitorId ( $ idSite , $ visitorId ) { Piwik :: checkUserHasSomeViewAccess ( ) ; if ( empty ( $ visitorId ) ) { return new DataTable ( ) ; } $ model = new Model ( ) ; $ data = $ model -> queryLogVisits ( $ idSite , false , false , false , 0 , 1 , $ visitorId , false , 'ASC' ) ; $ dataTable = $ this -> makeVisitorTableFromArray ( $ data ) ; $ this -> addFilterToCleanVisitors ( $ dataTable , $ idSite , false , true ) ; return $ dataTable ; }
Returns the very first visit for the given visitorId

@internal

@param $idSite
@param $visitorId

@return DataTable
Returns the very first visit for the given visitorId