Changeset 10 for trunk/Meet.php


Ignore:
Timestamp:
Aug 7, 2018, 10:19:25 PM (6 years ago)
Author:
chronos
Message:
  • Added: Import from Amblar school.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Meet.php

    r8 r10  
    66include_once('Import/Vavruska.php');
    77include_once('Import/SalsaDance.php');
     8include_once('Import/Amblar.php');
    89
    910abstract class Gender
     
    154155  $Result = GetNumberBeforeText($Text, 'let');
    155156  if ($Result == '') $Result = GetNumberAfterText($Text, 'Je mi');
     157  if ($Result == '') $Result = GetNumberAfterText($Text, 'čerstvých');
    156158  if ($Result == '') $Result = GetAgeHeightWeightFromText($Text)[0];
    157159  return $Result;
     
    242244      else if ($Method == 'astra') $Source = new MeetSourceAstraPraha();
    243245      else if ($Method == 'seznamka') $Source = new MeetSourceSeznamka();
     246      else if ($Method == 'amblar') $Source = new MeetSourceAmblar();
    244247      else {
    245         echo('Unsupported parse method: '.$Method);
    246         return;
     248        echo('Unsupported parse method: '.$Method.'<br/>');
     249        continue;
    247250      }
    248251      $Source->Database = $this->Database;
     
    281284  var $Location = '';
    282285  var $Image = '';
     286  var $Link = '';
     287  var $Title = '';
     288  var $Level = '';
    283289
    284290  function AddIfNotExist()
     
    302308        'Location' => $this->Location,
    303309        'Source' => $this->Source,
     310        'Link' => $this->Link,
    304311      ));
    305312    }
Note: See TracChangeset for help on using the changeset viewer.