/db_wp-includes_Text_Diff_Engine_shell.html
HTML | 255 lines | 240 code | 15 blank | 0 comment | 0 complexity | 1dbb65c7d7f3d793a63173b63acc73ef MD5 | raw file
- <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <title>WordPress Trunk</title><link rel="stylesheet" href="css/black-tie/jquery-ui-1.8.2.custom.css" type="text/css"></link><link rel="stylesheet" href="css/jquery.treeview.css" type="text/css"></link><link rel="stylesheet" href="css/theme.css" type="text/css"></link><script type="text/javascript" src="js/jquery-1.4.2.min.js"></script><script type="text/javascript" src="js/jquery-ui-1.8.2.custom.min.js"></script><script type="text/javascript" src="js/jquery.cookie.js"></script><script type="text/javascript" src="js/jquery.treeview.js"></script><script type="text/javascript">
- $(document).ready(function() {
- $(".filetree").treeview({
- collapsed: true,
- persist: "cookie"
- });
- $("#accordion").accordion({
- collapsible: true,
- autoHeight: false,
- fillSpace: true
- });
- $(".tabs").tabs();
- });
- </script></head><body><div xmlns="" id="content">
- <script type="text/javascript" src="js/menu.js"></script><script>
- function filterElements()
- {
- inherited = !$('a#show-inherited').hasClass('deselected');
- public = !$('a#show-public').hasClass('deselected');
- protected = !$('a#show-protected').hasClass('deselected');
- private = !$('a#show-private').hasClass('deselected');
- $('div.public').each(function(index, val) {
- $(val).toggle(public && !($(val).hasClass('inherited_from') && !inherited));
- });
- $('div.protected').each(function(index, val) {
- $(val).toggle(protected && !($(val).hasClass('inherited_from') && !inherited));
- });
- $('div.private').each(function(index, val) {
- $(val).toggle(private && !($(val).hasClass('inherited_from') && !inherited));
- });
- }
- $(document).ready(function() {
- $('a.gripper').click(function() {
- $(this).nextAll('div.code-tabs').slideToggle();
- $(this).children('img').toggle();
- return false;
- });
- $('div.method code span.highlight,div.function code span.highlight,div.constant code span.highlight,div.property code span.highlight').css('cursor', 'pointer');
- $('div.method code span.highlight,div.function code span.highlight,div.constant code span.highlight,div.property code span.highlight').click(function() {
- $(this).parent().nextAll('div.code-tabs').slideToggle();
- $(this).parent().prevAll('a.gripper').children('img').toggle();
- return false;
- });
- $('div.code-tabs').hide();
- $('a.gripper').show();
- $('div.code-tabs:empty').prevAll('a.gripper').html('');
- $('div.file-nav').show();
- $('a#show-public, a#show-protected, a#show-private, a#show-inherited').click(function(){
- $(this).toggleClass('deselected');
- if ($(this).hasClass('deselected')) {
- $(this).fadeTo('fast', '0.4');
- } else {
- $(this).fadeTo('fast', '1.0');
- }
- filterElements();
- return false;
- });
- $('a#show-protected, a#show-private').click();
- });
-
- </script><h1 class="file">wp-includes/Text/Diff/Engine/shell.php</h1>
- <div class="file-nav">
- <ul id="file-nav">
- <li><a href="#top">Global</a></li>
- <li>
- <a href="#classes"><img src="images/icons/class.png" height="14">
- Classes
- </a><ul><li><a href="#%5CText_Diff_Engine_shell">\Text_Diff_Engine_shell</a></li></ul>
- </li>
- </ul>
- <div style="float: right;padding-right: 20px;">
- Show:
- <a href="#" id="show-public"><img src="images/icons/visibility_public.png"></a><a href="#" id="show-protected"><img src="images/icons/visibility_protected.png"></a><a href="#" id="show-private"><img src="images/icons/visibility_private.png"></a><a href="#" id="show-inherited"><span class="attribute">inherited</span></a>
- </div>
- </div>
- <a name="top" class="anchor"></a><div id="file-description">
- <p class="short-description">Class used internally by Diff to actually compute the diffs.</p>
- <div class="long-description"><p>This class uses the Unix <code>diff</code> program via shell_exec to compute the
- differences between the two input arrays.</p>
- <p>Copyright 2007-2010 The Horde Project (http://www.horde.org/)</p>
- <p>See the enclosed file COPYING for license information (LGPL). If you did
- not receive this file, see http://opensource.org/licenses/lgpl-license.php.</p>
- </div>
- </div>
- <dl class="file-info">
- <dt>Author</dt>
- <dd>
- <a href="mailto:mail@milianw.de">Milian Wolff</a>
-
- </dd>
- <dt>Package</dt>
- <dd>Text_Diff
-
- </dd>
- <dt>Since</dt>
- <dd>0.3.0
-
- </dd>
- </dl>
- <a name="classes" class="anchor"></a><a id="\Text_Diff_Engine_shell" class="anchor"></a><h2 class="class">\Text_Diff_Engine_shell<div class="to-top"><a href="#top">jump to top</a></div>
- </h2>
- <div class="class">
- <small class="package"><b>Package: </b>Text\Diff</small><p class="short-description">Class used internally by Diff to actually compute the diffs.</p>
- <div class="long-description"><p>This class uses the Unix <code>diff</code> program via shell_exec to compute the
- differences between the two input arrays.</p>
- <p>Copyright 2007-2010 The Horde Project (http://www.horde.org/)</p>
- <p>See the enclosed file COPYING for license information (LGPL). If you did
- not receive this file, see http://opensource.org/licenses/lgpl-license.php.</p>
- </div>
- <dl class="class-info">
- <dt>Author</dt>
- <dd>
- <a href="mailto:mail@milianw.de">Milian Wolff</a>
-
- </dd>
- <dt>Since</dt>
- <dd>0.3.0
-
- </dd>
- </dl>
- <h3>Properties</h3>
- <div>
- <a id="\Text_Diff_Engine_shell::$_diffCommand" class="anchor"></a><div class="property public">
- <a href="#" class="gripper"><img src="images/icons/arrow_right.png"><img src="images/icons/arrow_down.png" style="display: none;"></a><code><img src="images/icons/property.png" alt="Property"><img src="images/icons/visibility_public.png" style="margin-right: 5px" alt="public">string
- <span class="highlight">$_diffCommand</span>= ''diff''
- </code><div class="description">
- <p class="short-description">Path to the diff executable</p></div>
- <div class="code-tabs">
- <div class="long-description">
- </div>
- <strong>Default value</strong><code>'diff'</code><strong>Details</strong><dl class="property-info">
- <dt>Type</dt>
- <dd>string</dd>
- </dl>
- </div>
- <div class="clear"></div>
- </div>
- </div>
- <h3>Methods</h3>
- <div>
- <a id="\Text_Diff_Engine_shell::_getLines()" class="anchor"></a><div class="method public">
- <a href="#" class="gripper"><img src="images/icons/arrow_right.png"><img src="images/icons/arrow_down.png" style="display: none;"></a><code><img src="images/icons/method.png" alt="method"><img src="images/icons/visibility_public.png" style="margin-right: 5px" alt="public"><span class="highlight">_getLines</span><span class="nb-faded-text">(
- array $text_lines, int $line_no, int $end
- =
- false
- )
- </span>
- :
- array</code><div class="description"><p class="short_description">Get lines from either the old or new text</p></div>
- <div class="code-tabs">
- <div class="long-description">
- </div>
- <strong>Parameters</strong><table class="argument-info">
- <thead><tr>
- <th>Name</th>
- <th>Type</th>
- <th>Description</th>
- </tr></thead>
- <tr>
- <th>$text_lines</th>
- <td>array</td>
- <td><em><p>&$text_lines Either $from_lines or $to_lines</p>
- </em></td>
- </tr>
- <tr>
- <th>$line_no</th>
- <td>int</td>
- <td><em><p>&$line_no Current line number</p>
- </em></td>
- </tr>
- <tr>
- <th>$end</th>
- <td>int</td>
- <td><em><p>Optional end line, when we want to chop more than one line.</p></em></td>
- </tr>
- </table>
- <strong>Returns</strong><table class="argument-info">
- <thead><tr>
- <th>Type</th>
- <th>Description</th>
- </tr></thead>
- <tr>
- <td>array</td>
- <td>The chopped lines</td>
- </tr>
- </table>
- <strong>Details</strong><dl class="function-info">
- <dt>Access</dt>
- <dd>private
-
- </dd>
- </dl>
- </div>
- <div class="clear"></div>
- </div>
- <a id="\Text_Diff_Engine_shell::diff()" class="anchor"></a><div class="method public">
- <a href="#" class="gripper"><img src="images/icons/arrow_right.png"><img src="images/icons/arrow_down.png" style="display: none;"></a><code><img src="images/icons/method.png" alt="method"><img src="images/icons/visibility_public.png" style="margin-right: 5px" alt="public"><span class="highlight">diff</span><span class="nb-faded-text">(
- array $from_lines, array $to_lines
- )
- </span>
- :
- array</code><div class="description"><p class="short_description">Returns the array of differences.</p></div>
- <div class="code-tabs">
- <div class="long-description">
- </div>
- <strong>Parameters</strong><table class="argument-info">
- <thead><tr>
- <th>Name</th>
- <th>Type</th>
- <th>Description</th>
- </tr></thead>
- <tr>
- <th>$from_lines</th>
- <td>array</td>
- <td><em><p>lines of text from old file</p></em></td>
- </tr>
- <tr>
- <th>$to_lines</th>
- <td>array</td>
- <td><em><p>lines of text from new file</p></em></td>
- </tr>
- </table>
- <strong>Returns</strong><table class="argument-info">
- <thead><tr>
- <th>Type</th>
- <th>Description</th>
- </tr></thead>
- <tr>
- <td>array</td>
- <td>all changes made (array with Text_Diff_Op_* objects)</td>
- </tr>
- </table>
- </div>
- <div class="clear"></div>
- </div>
- </div>
- </div>
- </div>
- <small xmlns="" class="footer">Documentation was generated by <a href="http://docblox-project.org">DocBlox 0.14.1</a>.
- </small></body></html>