38 if ( $this->overrideReason !==
null ) {
41 $confReason = $this->config->get(
'ReadOnly' );
42 if ( $confReason !==
null ) {
45 if ( $this->fileReason ===
null ) {
47 $readOnlyFile = $this->config->get(
'ReadOnlyFile' );
48 if ( is_file( $readOnlyFile ) && filesize( $readOnlyFile ) > 0 ) {
49 $this->fileReason = file_get_contents( $readOnlyFile );
51 $this->fileReason =
false;
64 $this->overrideReason = $msg;
71 $this->fileReason =
null;
Interface for configuration instances.