Beispiel #1
0
 /**
  * Alias of embeddedin
  *
  * @see Page::embeddedin()
  * @deprecated since 18 June 2013
  * @param null $namespace
  * @param null $limit
  * @return array
  */
 public function get_transclusions($namespace = null, $limit = null)
 {
     Peachy::deprecatedWarn('Page::get_transclusions()', 'Page::embeddedin()');
     return $this->embeddedin($namespace, $limit);
 }
Beispiel #2
0
/**
 * Generates a diff between two strings
 *
 * @package Text_Diff
 * @deprecated since 18 June 2013
 */
function getTextDiff()
{
    Peachy::deprecatedWarn('getTextDiff()', 'Diff::load()');
    $args = func_get_args();
    return call_user_func_array(array('Diff', 'load'), $args);
}
Beispiel #3
0
 /**
  * Returns array of pages that embed (transclude) the page given.
  *
  * @see Page::embeddedin()
  * @access public
  * @param string $title The title of the page being embedded.
  * @param array $namespace Which namespaces to search (default: null).
  * @param int $limit How many results to retrieve (default: null i.e. all).
  * @return array A list of pages the title is transcluded in.
  */
 public function embeddedin($title, $namespace = null, $limit = 50)
 {
     Peachy::deprecatedWarn('Wiki::embeddedin()', 'Page::embeddedin()');
     $page = $this->initPage($title);
     return $page->embeddedin($namespace, $limit);
 }