[ 'type' => 'list', 'name' => 'Type', 'title' => 'Choisir le type', 'values' => [ 'Actualités' => 'actualite', 'Brèves' => 'breves', ], ] ] ]; private function formatDate($fright) { preg_match('#^(.*)(.*)getInput('type')); $dom = getSimpleHTMLDOM($url); foreach ($dom->find('div.une_actu') as $article) { $fright = $article->find('span.fright', 0); $this->items[] = [ 'title' => $article->find('h3 a', 0)->plaintext, 'uri' => self::URI . $article->find('h3 a', 0)->href, 'content' => $article->find('p', 0)->plaintext, 'author' => $fright->find('a', 0)->plaintext, 'categories' => [($fright->find('a')[1])->plaintext], 'enclosures' => [self::URI . $article->find('a img', 0)->src], 'timestamp' => $this->formatDate($article->find('span.fright', 0)), ]; } } }