/** * FetchAllArray * * @param & $result * @access public * @return array */ public function FetchAllArray(&$result) { return $result->GetArray(); }
/** * function ckgedit_edit * @author Pierre Spring <*****@*****.**> * edit screen using fck * * @param & $event * @access public * @return void */ function ckgedit_edit(&$event) { global $INFO; // we only change the edit behaviour if ($event->data != 'edit') { return; } // load xml and acl if (!$this->_preprocess()) { return; } // print out the edit screen $this->_print(); // prevent Dokuwiki normal processing of $ACT (it would clean the variable and destroy our 'index' value. $event->preventDefault(); // index command belongs to us, there is no need to hold up Dokuwiki letting other plugins see if its for them $event->stopPropagation(); }
/** * Gets template which are used on $title and replaced the property annotation of * $redirectProperty with $targetProperty. Usual constraints apply. * * @param $title Title * @param $redirectProperty string * @param $targetProperty string * @param $verbose boolean * @param & $db database */ private function replacePropertiesOnTemplates(Title $title, $redirectProperty, $targetProperty, $verbose, &$db) { $templatelinks = $db->tableName('templatelinks'); $sql = 'tl_from = ' . $title->getArticleID(); $res = $db->select($templatelinks, array('DISTINCT tl_title', 'tl_namespace'), $sql, 'SMW::replacePropertiesOnTemplates'); if ($db->numRows($res) > 0) { while ($row = $db->fetchObject($res)) { $title = Title::newFromText($row->tl_title, $row->tl_namespace); if ($title == NULL) { continue; } $this->replaceProperties($title, $redirectProperty, $targetProperty, $verbose); } } $db->freeResult($res); }