Ignore:
Timestamp:
May 5, 2019, 5:17:06 PM (6 years ago)
Author:
chronos
Message:
  • Modified: Application made using classes System and Application.
  • Modified: Used Common package for better code reuse.
  • Modified: Application made modular. Web sections converted to application modules. They will register pages in main application object.
Location:
trunk/Modules
Files:
2 added
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Meet/Import/Amblar.php

    r32 r37  
    2828  function Import()
    2929  {
    30     parent::Import();
     30    $Output = parent::Import();
    3131    $Content = file_get_contents($this->URL);
    3232
     
    3737    if ($Content == '')
    3838    {
    39       echo('Main block not isolated.</br>');
    40       return;
     39      $Output .= 'Main block not isolated.</br>';
     40      return $Output;
    4141    }
    4242
     
    7272      $MeetItem->Database = $this->Database;
    7373      $MeetItem->Source = $this->Id;
    74       $this->ImportItem($MeetItem);
     74      $Output .= $this->ImportItem($MeetItem);
    7575      $this->AddedCount += $MeetItem->AddIfNotExist();
    7676    }
     77    return $Output;
    7778  }
    7879
     
    8182    global $HeightTags, $AgeTags, $LevelTags;
    8283
     84    $Output = '';
    8385    $Content = file_get_contents($MeetItem->Link);
    8486
     
    8890    if ($Content == '')
    8991    {
    90       echo('Main block not isolated.</br>');
     92      $Output .= 'Main block not isolated.</br>';
    9193      return;
    9294    }
     
    106108      if ($Tag == 'Praha') $MeetItem->Location = 'Praha';
    107109    }
     110    return $Output;
    108111  }
    109112}
Note: See TracChangeset for help on using the changeset viewer.