/** * Move prop in page_wikia_props table to new article * @param integer $type * @param integer $oldArticleId * @param integer $newArticleId */ public function moveWikiaPageProp($type, $oldArticleId, $newArticleId) { $prop = wfGetWikiaPageProp($type, $oldArticleId); if (!empty($prop)) { wfDeleteWikiaPageProp($type, $oldArticleId); wfSetWikiaPageProp($type, $newArticleId, $prop); } }
protected function unMarkInProps($prop) { $key = $this->getPropCacheKey(); $this->propsCache[$prop] = false; $cache = $this->getCache(); $cache->set($key, false); wfDeleteWikiaPageProp($prop, $this->getId()); $this->setInCommentsIndex($prop, 0, true); }