コード例 #1
0
ファイル: LogPager.php プロジェクト: mangowi/mediawiki
 /**
  * Constructor
  *
  * @param LogEventsList $list
  * @param string $types or Array: log types to show
  * @param string $performer the user who made the log entries
  * @param string|Title $title the page title the log entries are for
  * @param string $pattern do a prefix search rather than an exact title match
  * @param array $conds extra conditions for the query
  * @param int $year The year to start from
  * @param int $month The month to start from
  * @param string $tagFilter tag
  */
 public function __construct($list, $types = array(), $performer = '', $title = '', $pattern = '', $conds = array(), $year = false, $month = false, $tagFilter = '')
 {
     parent::__construct($list->getContext());
     $this->mConds = $conds;
     $this->mLogEventsList = $list;
     $this->limitType($types);
     // also excludes hidden types
     $this->limitPerformer($performer);
     $this->limitTitle($title, $pattern);
     $this->getDateCond($year, $month);
     $this->mTagFilter = $tagFilter;
 }
コード例 #2
0
ファイル: LogPager.php プロジェクト: paladox/mediawiki
 /**
  * Constructor
  *
  * @param LogEventsList $list
  * @param string|array $types Log types to show
  * @param string $performer The user who made the log entries
  * @param string|Title $title The page title the log entries are for
  * @param string $pattern Do a prefix search rather than an exact title match
  * @param array $conds Extra conditions for the query
  * @param int|bool $year The year to start from. Default: false
  * @param int|bool $month The month to start from. Default: false
  * @param string $tagFilter Tag
  * @param string $action Specific action (subtype) requested
  */
 public function __construct($list, $types = [], $performer = '', $title = '', $pattern = '', $conds = [], $year = false, $month = false, $tagFilter = '', $action = '')
 {
     parent::__construct($list->getContext());
     $this->mConds = $conds;
     $this->mLogEventsList = $list;
     $this->limitType($types);
     // also excludes hidden types
     $this->limitPerformer($performer);
     $this->limitTitle($title, $pattern);
     $this->limitAction($action);
     $this->getDateCond($year, $month);
     $this->mTagFilter = $tagFilter;
     $this->mDb = wfGetDB(DB_REPLICA, 'logpager');
 }