WriteSafeSessionHandler

Wraps another SessionHandlerInterface to prevent writes when not allowed. Hierarchy class \Drupal\Core\Session\WriteSafeSessionHandler implements WriteSafeSessionHandlerInterface, SessionHandlerInterface File core/lib/Drupal/Core/Session/WriteSafeSessionHandler.php, line 8 Namespace Drupal\Core\Session Members Name Modifiers Type Description WriteSafeSessionHandler::$sessionWritable protected property Whether or not the session is enabled for writing. WriteSafeSessionH

WriteSafeSessionHandler::close

public WriteSafeSessionHandler::close() Closes the current session. Return value bool true on success, false on failure Overrides SessionHandlerInterface::close See also http://php.net/sessionhandlerinterface.close File core/lib/Drupal/Core/Session/WriteSafeSessionHandler.php, line 38 Class WriteSafeSessionHandler Wraps another SessionHandlerInterface to prevent writes when not allowed. Namespace Drupal\Core\Session Code public function close() { return $this->wrappedSessionHand

WriteSafeSessionHandler::destroy

public WriteSafeSessionHandler::destroy($session_id) Destroys a session. Parameters string $sessionId Session ID, see http://php.net/function.session-id: Return value bool true on success, false on failure Overrides SessionHandlerInterface::destroy See also http://php.net/sessionhandlerinterface.destroy File core/lib/Drupal/Core/Session/WriteSafeSessionHandler.php, line 45 Class WriteSafeSessionHandler Wraps another SessionHandlerInterface to prevent writes when not allowed. Namespace

WriteSafeSessionHandler::$sessionWritable

Whether or not the session is enabled for writing. Type: bool File core/lib/Drupal/Core/Session/WriteSafeSessionHandler.php, line 20 Class WriteSafeSessionHandler Wraps another SessionHandlerInterface to prevent writes when not allowed. Namespace Drupal\Core\Session Code protected $sessionWritable;

WordLevelDiff::orig

public WordLevelDiff::orig() Gets the original set of lines. This reconstructs the $from_lines parameter passed to the constructor. Return value array The original sequence of strings. Overrides Diff::orig File core/lib/Drupal/Component/Diff/WordLevelDiff.php, line 52 Class WordLevelDiff @todo document @private @subpackage DifferenceEngine Namespace Drupal\Component\Diff Code public function orig() { $orig = new HWLDFWordAccumulator(); foreach ($this->edits as $edit) { if

WordLevelDiff

@todo document @private @subpackage DifferenceEngine Hierarchy class \Drupal\Component\Diff\Diffclass \Drupal\Component\Diff\MappedDiffclass \Drupal\Component\Diff\WordLevelDiff File core/lib/Drupal/Component/Diff/WordLevelDiff.php, line 13 Namespace Drupal\Component\Diff Members Name Modifiers Type Description Diff::$edits protected property The list of differences as an array of diff operations. Diff::check public function Check a Diff for validity. Diff::g

WordLevelDiff::closing

public WordLevelDiff::closing() Gets the closing set of lines. This reconstructs the $to_lines parameter passed to the constructor. Return value array The sequence of strings. Overrides Diff::closing File core/lib/Drupal/Component/Diff/WordLevelDiff.php, line 67 Class WordLevelDiff @todo document @private @subpackage DifferenceEngine Namespace Drupal\Component\Diff Code public function closing() { $closing = new HWLDFWordAccumulator(); foreach ($this->edits as $edit) { if

WordLevelDiff::__construct

public WordLevelDiff::__construct($orig_lines, $closing_lines) Constructor. Computes diff between sequences of strings. This can be used to compute things like case-insensitive diffs, or diffs which ignore changes in white-space. Parameters $from_lines array An array of strings.: (Typically these are lines from a file.) $to_lines array An array of strings.: $mapped_from_lines array This array should: have the same size number of elements as $from_lines. The elements in $mapped_from_lines and $

WordLevelDiff::_split

protected WordLevelDiff::_split($lines) File core/lib/Drupal/Component/Diff/WordLevelDiff.php, line 24 Class WordLevelDiff @todo document @private @subpackage DifferenceEngine Namespace Drupal\Component\Diff Code protected function _split($lines) { $words = array(); $stripped = array(); $first = TRUE; foreach ($lines as $line) { // If the line is too long, just pretend the entire line is one big word // This prevents resource exhaustion problems if ($first) {

WordLevelDiff::MAX_LINE_LENGTH

File core/lib/Drupal/Component/Diff/WordLevelDiff.php, line 15 Class WordLevelDiff @todo document @private @subpackage DifferenceEngine Namespace Drupal\Component\Diff Code const MAX_LINE_LENGTH = 10000;