コード例 #1
0
ファイル: _generic.php プロジェクト: tomzx/wikimedia-apibot
 function __construct($core, $checker_params = NULL)
 {
     if (is_string($checker_params)) {
         $checker_params = array($checker_params);
     }
     foreach ($checker_params as $key => $param) {
         if (!is_numeric($param)) {
             $param = $core->info->namespace_id_by_name($param);
             if (is_null($param)) {
                 $core->log("Bad namespace (" . $param . ") given to " . get_class($this), LL_ERROR);
             } else {
                 $checker_params[$key] = $param;
             }
         }
     }
     $this->data_property = "ns";
     parent::__construct($core, $checker_params);
 }
コード例 #2
0
ファイル: _generic.php プロジェクト: tomzx/wikimedia-apibot
 function __construct($core, $checker_params = NULL)
 {
     $this->data_property = "user";
     parent::__construct($core, $checker_params);
 }
コード例 #3
0
ファイル: _generic.php プロジェクト: tomzx/wikimedia-apibot
 function __construct($core, $checker_params)
 {
     $this->data_property = "comment";
     parent::__construct($core, $checker_params);
 }
コード例 #4
0
ファイル: _generic.php プロジェクト: tomzx/wikimedia-apibot
 function __construct($core, $checker_params)
 {
     $this->data_property = "descriptionurl";
     parent::__construct($core, $checker_params);
 }
コード例 #5
0
ファイル: _generic.php プロジェクト: tomzx/wikimedia-apibot
 function __construct($core, $checker_params = NULL, $fetch_page_properties = NULL)
 {
     $this->data_property = "title";
     parent::__construct($core, $checker_params, $fetch_page_properties);
 }
コード例 #6
0
ファイル: _generic.php プロジェクト: tomzx/wikimedia-apibot
 function __construct($core, $checker_params = NULL)
 {
     $this->data_property = "imagerepository";
     parent::__construct($core, $checker_params);
 }