Exemplo n.º 1
0
 public function run()
 {
     $feeds = ['https://hir.aviontego.com/portals/feeds/JobPositionHRXml.aspx?CompanyID=HC', 'https://webserv1.keyjobs.com/Avionte/Portals/feeds/JobPositionHRXml.aspx?CompanyID=KeyPersonnel', 'https://portals.peoplelinkstaffing.com/Avionte/portals/feeds/JobPositionHRXml.aspx?CompanyID=PPL', 'https://sop.aviontego.com/portals/feeds/JobPositionHRXml.aspx?CompanyID=SSS', 'https://portals.aviontego.com/AbundantSolutions/feeds/JobPositionHRXml.aspx?CompanyID=ABS', 'http://portal.standbypersonnel.com/portals/feeds/JobPositionHRXml.aspx?CompanyID=StandBy'];
     foreach ($feeds as $url) {
         $parsed = readFeed($url);
         FeedUrl::create(['publisher_name' => $parsed['PublisherInfo']['Name'], 'url' => $url]);
     }
 }
Exemplo n.º 2
0
/**
 * Get Publisher Names
 * 
 * @return array
 */
function getPublisherNames()
{
    $data = [];
    $feeds = \XFed\FeedUrl::keyValue();
    foreach ($feeds as $id => $url) {
        $parsed = readFeed($url);
        $data[$id] = $parsed['PublisherInfo']['Name'];
    }
    return $data;
}
Exemplo n.º 3
0
 public function storeJobs()
 {
     $feed = FeedUrl::find($this->request->input('XmlID'));
     $parsed = readFeed($feed->url);
     foreach ($parsed['PositionOpening'] as $row) {
         if ($row['PositionRecordInfo']['Id']['IdValue'] === $this->request->input('ID')) {
             if (isJobExist($this->request->input('ID')) < 1) {
                 storeJobRow($row);
                 exit;
             }
         }
     }
 }