find('h2.titleJO', 0); //$this->author = trim($title->plaintext); $uri1 = $html->find('h2.titleELI', 0); //$uri = $uri1->plaintext; //$this->uri = trim(substr($uri, strpos($uri, 'https'))); $this->timestamp = strtotime(substr($this->uri, strpos($this->uri, 'eli/jo/') + strlen('eli/jo/'), -5)); foreach ($html->find('h3') as $section) { $subsections = $section->nextSibling()->find('h4'); foreach ($subsections as $subsection) { $origins = $subsection->nextSibling()->find('h5'); foreach ($origins as $origin) { $this->items[] = $this->extractItem($section, $subsection, $origin); } if (!empty($origins)) { continue; } $this->items[] = $this->extractItem($section, $subsection); } if (!empty($subsections)) { continue; } $this->items[] = $this->extractItem($section); } } private function extractItem($section, $subsection = null, $origin = null) { $item = []; $item['author'] = $this->author; $item['timestamp'] = $this->timestamp; $item['uri'] = $this->uri . '#' . count($this->items); $item['title'] = $section->plaintext; if (!is_null($origin)) { $item['title'] = '[ ' . $item['title'] . ' / ' . $subsection->plaintext . ' ] ' . $origin->plaintext; $data = $origin; } elseif (!is_null($subsection)) { $item['title'] = '[ ' . $item['title'] . ' ] ' . $subsection->plaintext; $data = $subsection; } else { $data = $section; } $item['content'] = ''; foreach ($data->nextSibling()->find('a') as $content) { $text = $content->plaintext; $href = ''; //$href = $content->nextSibling()->getAttribute('resource'); $item['content'] .= '

' . $text . '

'; } return $item; } public function getIcon() { return 'https://www.legifrance.gouv.fr/img/favicon.ico'; } } ption value='dave/remove-native-event'>dave/remove-native-event Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/src/deps/skia/include/effects/SkBlurDrawLooper.h (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2022-04-03skia WIPjarred/canvasGravatar Jarred Sumner 1-0/+26
2022-04-03wipGravatar Jarred Sumner 120-20/+8988
2022-04-03[bun.js] Expose `ImageData` globallyGravatar Jarred Sumner 12-2/+1237
2022-04-02More typesGravatar Jarred Sumner 2-39/+3998
2022-04-02Add more typingsGravatar Jarred Sumner 1-2/+416
2022-04-02Add more tests for Node FSGravatar Jarred Sumner 4-1/+60
2022-04-02[bun.js] fs.readSync & fs.writeSync should return just the numberGravatar Jarred Sumner 1-24/+57
2022-04-02[bun.js] Support `mode` and `flags` as integer args in fs.openSync (instead o...Gravatar Jarred Sumner 1-0/+6
2022-04-02Update base.zigGravatar Jarred Sumner 1-0/+1
2022-04-02Fix GC bug when reading TypedArray from user inputGravatar Jarred Sumner 1-6/+36
2022-04-02s/Buffer/TypedArrayGravatar Jarred Sumner 1-17/+17
2022-04-02Fix mmap on macOS x64Gravatar Jarred Sumner 2-29/+27