常用方法
常用方法
常用方法
常用方法
/** * Callback function to propagate rollback * @param Article article * @return bool must return true or other hooks don't get called */ function propagatePlaceRollback(&$article, &$user) { $ns = $article->getTitle()->getNamespace(); if ($ns == NS_PLACE) { $place = new Place($article->getTitle()->getText()); $place->propagateRollback($article); } return true; }