*
* @param $params
* @param $element
+ * @return bool
*/
static function validateTag( $params, $element ) {
$params = Sanitizer::decodeTagAttributes( $params );
* @param $write array
* @param $method string
* @param $lowPriority bool
+ * @return bool
*/
public function lockTables( $read, $write, $method, $lowPriority = true ) {
$items = array();
}
$sql = "LOCK TABLES " . implode( ',', $items );
$this->query( $sql, $method );
+ return true;
}
/**
* @param $method string
+ * @return bool
*/
public function unlockTables( $method ) {
$this->query( "UNLOCK TABLES", $method );
+ return true;
}
/**
/**
* @param $conn
+ * @return bool
* @throws DBConnectionError
*/
function reportConnectionError( &$conn ) {
* @param $old Content: old content
* @param $new Content: new content
*
+ * @return bool|string
* @since 1.21
* @throws MWException if $old or $new are not instances of TextContent.
*/
*
* @param $otext String: old text, must be already segmented
* @param $ntext String: new text, must be already segmented
+ * @return bool|string
* @deprecated since 1.21, use generateContentDiffBody() instead!
*/
function generateDiffBody( $otext, $ntext ) {
* @param $srcPath String
* @param $flags int
* @param $options Array
+ * @return \FileRepoStatus
* @throws MWException
*/
function publish( $srcPath, $flags = 0, array $options = array() ) {
* @param $source string
* @param $watch bool
* @param $timestamp bool|string
+ * @return bool
* @throws MWException
*/
function recordUpload( $oldver, $desc, $license = '', $copyStatus = '', $source = '',
/**
* @param $versions array
* @param $unsuppress bool
+ * @return \FileRepoStatus
* @throws MWException
*/
function restore( $versions = array(), $unsuppress = false ) {
/**
* @param $reason string
* @param $suppress bool
+ * @return \FileRepoStatus
* @throws MWException
*/
function delete( $reason, $suppress = false ) {
/**
* @param $target Title
+ * @return \FileRepoStatus
* @throws MWException
*/
function move( $target ) {
/**
* Delete unused files in the deleted zone.
* This should be called from outside the transaction in which execute() was called.
- * @return FileRepoStatus|void
+ * @return FileRepoStatus
*/
function cleanup() {
if ( !$this->cleanupBatch ) {
* removed later on, when the first one is popped.
*
* @param $jobs array of Job objects
+ * @return bool
* @deprecated 1.21
*/
public static function batchInsert( $jobs ) {
* large batches of jobs can cause slave lag.
*
* @param $jobs array of Job objects
+ * @return bool
* @deprecated 1.21
*/
public static function safeBatchInsert( $jobs ) {