Lines Matching refs:pid
13 * Import page schema only when the pid header is present.
18 if (!in_array('pid', $this->header))
19 throw new StructException('There is no "pid" header in the CSV. Schema not imported.');
30 $pid = cleanID($values[0]);
31 if (isset($this->createPage[$pid])) {
32 $this->createPage($pid, $values);
37 $pid,
49 * @param string $pid
52 protected function createPage($pid, $line)
54 $text = pageTemplate($pid);
56 $pageParts = explode(':', $pid);
88 saveWikiText($pid, $text, 'Created by struct csv import');
130 if ($col->getLabel() == 'pid') {
131 $pid = cleanID($rawvalue);
132 if (isset($this->importedPids[$pid])) {
133 $this->errors[] = 'Page "' . $pid . '" already imported. Skipping the row.';
136 if (page_exists($pid)) {
137 $this->importedPids[$pid] = true;
142 $this->createPage[$pid] = true;
145 $this->errors[] = 'Page "' . $pid . '" does not exists. Skipping the row.';