WC_Log_Handler_File::close() protected WC 1.0
Close a handle.
{} Это метод класса: WC_Log_Handler_File{}
Хуков нет.
Возвращает
true/false. success
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->close( $handle );
- $handle(строка) (обязательный)
- Log handle.
Код WC_Log_Handler_File::close() WC Log Handler File::close WC 5.0.0
protected function close( $handle ) {
$result = false;
if ( $this->is_open( $handle ) ) {
$result = fclose( $this->handles[ $handle ] ); // @codingStandardsIgnoreLine.
unset( $this->handles[ $handle ] );
}
return $result;
}