· 9 years ago · Jan 07, 2017, 08:44 PM
1<?php
2
3// Start of svn v.1.0.1
4
5class Svn {
6 const NON_RECURSIVE = 1;
7 const DISCOVER_CHANGED_PATHS = 2;
8 const OMIT_MESSAGES = 4;
9 const STOP_ON_COPY = 8;
10 const ALL = 16;
11 const SHOW_UPDATES = 32;
12 const NO_IGNORE = 64;
13 const IGNORE_EXTERNALS = 128;
14 const INITIAL = 1;
15 const HEAD = -1;
16 const BASE = -2;
17 const COMMITTED = -3;
18 const PREV = -4;
19 const UNSPECIFIED = -5;
20
21
22 public static function checkout() {}
23 public static function cat() {}
24 public static function ls() {}
25 public static function log() {}
26 public static function auth_set_parameter() {}
27 public static function auth_get_parameter() {}
28 public static function client_version() {}
29 public static function config_ensure() {}
30 public static function diff() {}
31 public static function cleanup() {}
32 public static function revert() {}
33 public static function resolved() {}
34 public static function commit() {}
35 public static function lock() {}
36 public static function unlock() {}
37 public static function add() {}
38 public static function status() {}
39 public static function update() {}
40 public static function update2() {}
41 public static function import() {}
42 public static function info() {}
43 public static function export() {}
44 public static function copy() {}
45 public static function switch() {}
46 public static function blame() {}
47 public static function delete() {}
48 public static function mkdir() {}
49 public static function move() {}
50 public static function proplist() {}
51 public static function propget() {}
52 public static function propset() {}
53 public static function prop_delete() {}
54 public static function revprop_get() {}
55 public static function revprop_set() {}
56 public static function revprop_delete() {}
57 public static function repos_create() {}
58 public static function repos_recover() {}
59 public static function repos_hotcopy() {}
60 public static function repos_open() {}
61 public static function repos_fs() {}
62 public static function repos_fs_begin_txn_for_commit() {}
63 public static function repos_fs_commit_txn() {}
64
65}
66
67class SvnWc {
68 const NONE = 1;
69 const UNVERSIONED = 2;
70 const NORMAL = 3;
71 const ADDED = 4;
72 const MISSING = 5;
73 const DELETED = 6;
74 const REPLACED = 7;
75 const MODIFIED = 8;
76 const MERGED = 9;
77 const CONFLICTED = 10;
78 const IGNORED = 11;
79 const OBSTRUCTED = 12;
80 const EXTERNAL = 13;
81 const INCOMPLETE = 14;
82
83}
84
85class SvnWcSchedule {
86 const NORMAL = 0;
87 const ADD = 1;
88 const DELETE = 2;
89 const REPLACE = 3;
90
91}
92
93class SvnNode {
94 const NONE = 0;
95 const FILE = 1;
96 const DIR = 2;
97 const UNKNOWN = 3;
98
99}
100
101/**
102 * (PECL svn >= 0.1.0)<br/>
103 * Checks out a working copy from the repository
104 * @link http://php.net/manual/en/function.svn-checkout.php
105 * @param string $repos <p>
106 * String URL path to directory in repository to check out.
107 * </p>
108 * @param string $targetpath <p>
109 * String local path to directory to check out in to
110 * </p>
111 * Relative paths will be resolved as if the current working directory was the one that contains the PHP binary. To use the calling script's working directory, use <b>realpath</b> or dirname(__FILE__).
112 * @param int $revision [optional] <p>
113 * Integer revision number of repository to check out. Default is
114 * HEAD, the most recent revision.
115 * </p>
116 * @param int $flags [optional] <p>
117 * Any combination of <b>SVN_NON_RECURSIVE</b> and
118 * <b>SVN_IGNORE_EXTERNALS</b>.
119 * </p>
120 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
121 */
122function svn_checkout ($repos, $targetpath, $revision = SVN_REVISION_HEAD, $flags = 0) {}
123
124/**
125 * (PECL svn >= 0.1.0)<br/>
126 * Returns the contents of a file in a repository
127 * @link http://php.net/manual/en/function.svn-cat.php
128 * @param string $repos_url <p>
129 * String URL path to item in a repository.
130 * </p>
131 * @param int $revision_no [optional] <p>
132 * Integer revision number of item to retrieve, default is the HEAD
133 * revision.
134 * </p>
135 * @return string the string contents of the item from the repository on
136 * success, and <b>FALSE</b> on failure.
137 */
138function svn_cat ($repos_url, $revision_no = SVN_REVISION_HEAD) {}
139
140/**
141 * (PECL svn >= 0.1.0)<br/>
142 * Returns list of directory contents in repository URL, optionally at revision number
143 * @link http://php.net/manual/en/function.svn-ls.php
144 * @param string $repos_url
145 * @param int $revision_no [optional]
146 * @param bool $recurse [optional] <p>
147 * Enables recursion.
148 * </p>
149 * @param bool $peg [optional]
150 * @return array On success, this function returns an array file listing in the format
151 * of:
152 * <pre>
153 * [0] => Array
154 * (
155 * [created_rev] => integer revision number of last edit
156 * [last_author] => string author name of last edit
157 * [size] => integer byte file size of file
158 * [time] => string date of last edit in form 'M d H:i'
159 * or 'M d Y', depending on how old the file is
160 * [time_t] => integer unix timestamp of last edit
161 * [name] => name of file/directory
162 * [type] => type, can be 'file' or 'dir'
163 * )
164 * [1] => ...
165 * </pre>
166 */
167function svn_ls ($repos_url, $revision_no = SVN_REVISION_HEAD, $recurse = false, $peg = false) {}
168
169/**
170 * (PECL svn >= 0.1.0)<br/>
171 * Returns the commit log messages of a repository URL
172 * @link http://php.net/manual/en/function.svn-log.php
173 * @param string $repos_url <p>
174 * Repository URL of the item to retrieve log history from.
175 * </p>
176 * @param int $start_revision [optional] <p>
177 * Revision number of the first log to retrieve. Use
178 * <b>SVN_REVISION_HEAD</b> to retrieve the log from
179 * the most recent revision.
180 * </p>
181 * @param int $end_revision [optional] <p>
182 * Revision number of the last log to retrieve. Defaults to
183 * <i>start_revision</i> if specified or to
184 * <b>SVN_REVISION_INITIAL</b> otherwise.
185 * </p>
186 * @param int $limit [optional] <p>
187 * Number of logs to retrieve.
188 * </p>
189 * @param int $flags [optional] <p>
190 * Any combination of <b>SVN_OMIT_MESSAGES</b>,
191 * <b>SVN_DISCOVER_CHANGED_PATHS</b> and
192 * <b>SVN_STOP_ON_COPY</b>.
193 * </p>
194 * @return array On success, this function returns an array file listing in the format
195 * of:
196 * <pre>
197 * [0] => Array, ordered most recent (highest) revision first
198 * (
199 * [rev] => integer revision number
200 * [author] => string author name
201 * [msg] => string log message
202 * [date] => string date formatted per ISO 8601, i.e. date('c')
203 * [paths] => Array, describing changed files
204 * (
205 * [0] => Array
206 * (
207 * [action] => string letter signifying change
208 * [path] => absolute repository path of changed file
209 * )
210 * [1] => ...
211 * )
212 * )
213 * [1] => ...
214 * </pre>
215 * </p>
216 * <p>
217 * The output will always be a numerically indexed array of arrays,
218 * even when there are none or only one log message(s).
219 * </p>
220 * <p>
221 * The value of action is a subset of the
222 * status output
223 * in the first column, where possible values are:
224 * </p>
225 * <table>
226 * Actions
227 * <tr valign="top">
228 * <td>Letter</td>
229 * <td>Description</td>
230 * </tr>
231 * <tr valign="top">
232 * <td>M</td>
233 * <td>Item/props was modified</td>
234 * </tr>
235 * <tr valign="top">
236 * <td>A</td>
237 * <td>Item was added</td>
238 * </tr>
239 * <tr valign="top">
240 * <td>D</td>
241 * <td>Item was deleted</td>
242 * </tr>
243 * <tr valign="top">
244 * <td>R</td>
245 * <td>Item was replaced</td>
246 * </tr>
247 * </table>
248 * <p>
249 * If no changes were made to the item, an empty array is returned.
250 */
251function svn_log ($repos_url, $start_revision = null, $end_revision = null, $limit = 0, $flags = SVN_DISCOVER_CHANGED_PATHS | SVN_STOP_ON_COPY) {}
252
253/**
254 * (PECL svn >= 0.1.0)<br/>
255 * Sets an authentication parameter
256 * @link http://php.net/manual/en/function.svn-auth-set-parameter.php
257 * @param string $key <p>
258 * String key name. Use the authentication constants
259 * defined by this extension to specify a key.
260 * </p>
261 * @param string $value <p>
262 * String value to set to parameter at key. Format of value varies
263 * with the parameter.
264 * </p>
265 * @return void No value is returned.
266 */
267function svn_auth_set_parameter ($key, $value) {}
268
269/**
270 * (PECL svn >= 0.1.0)<br/>
271 * Retrieves authentication parameter
272 * @link http://php.net/manual/en/function.svn-auth-get-parameter.php
273 * @param string $key <p>
274 * String key name. Use the authentication constants
275 * defined by this extension to specify a key.
276 * </p>
277 * @return string|NULL the string value of the parameter at <i>key</i>;
278 * returns <b>NULL</b> if parameter does not exist.
279 */
280function svn_auth_get_parameter ($key) {}
281
282/**
283 * (PECL svn >= 0.1.0)<br/>
284 * Returns the version of the SVN client libraries
285 * @link http://php.net/manual/en/function.svn-client-version.php
286 * @return string String version number, usually in form of x.y.z.
287 */
288function svn_client_version () {}
289
290function svn_config_ensure () {}
291
292/**
293 * (PECL svn >= 0.1.0)<br/>
294 * Recursively diffs two paths
295 * @link http://php.net/manual/en/function.svn-diff.php
296 * @param string $path1 <p>
297 * First path to diff. This can be a URL to a file/directory in an SVN
298 * repository or a local file/directory path.
299 * </p>
300 * Relative paths will be resolved as if the current working directory was the one that contains the PHP binary. To use the calling script's working directory, use <b>realpath</b> or dirname(__FILE__).
301 * If a local file path has only backslashes and no forward slashes,
302 * this extension will fail to find the path. Always
303 * replace all backslashes with forward slashes when using this
304 * function.
305 * @param int $rev1 <p>
306 * First path's revision number. Use <b>SVN_REVISION_HEAD</b>
307 * to specify the most recent revision.
308 * </p>
309 * @param string $path2 <p>
310 * Second path to diff. See <i>path1</i> for description.
311 * </p>
312 * @param int $rev2 <p>
313 * Second path's revision number. See <i>rev1</i>
314 * for description.
315 * </p>
316 * @return array an array-list consisting of two streams: the first is the diff output
317 * and the second contains error stream output. The streams can be
318 * read using <b>fread</b>. Returns <b>FALSE</b> or <b>NULL</b> on
319 * error.
320 * </p>
321 * <p>
322 * The diff output will, by default, be in the form of Subversion's
323 * custom unified diff format, but an
324 * external
325 * diff engine may be
326 * used depending on Subversion's configuration.
327 */
328function svn_diff ($path1, $rev1, $path2, $rev2) {}
329
330/**
331 * (PECL svn >= 0.1.0)<br/>
332 * Recursively cleanup a working copy directory, finishing incomplete operations and removing locks
333 * @link http://php.net/manual/en/function.svn-cleanup.php
334 * @param string $workingdir <p>
335 * String path to local working directory to cleanup
336 * </p>
337 * Relative paths will be resolved as if the current working directory was the one that contains the PHP binary. To use the calling script's working directory, use <b>realpath</b> or dirname(__FILE__).
338 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
339 */
340function svn_cleanup ($workingdir) {}
341
342/**
343 * (PECL svn >= 0.3.0)<br/>
344 * Revert changes to the working copy
345 * @link http://php.net/manual/en/function.svn-revert.php
346 * @param string $path <p>
347 * The path to the working repository.
348 * </p>
349 * @param bool $recursive [optional] <p>
350 * Optionally make recursive changes.
351 * </p>
352 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
353 */
354function svn_revert ($path, $recursive = false) {}
355
356function svn_resolved () {}
357
358/**
359 * (PECL svn >= 0.1.0)<br/>
360 * Sends changes from the local working copy to the repository
361 * @link http://php.net/manual/en/function.svn-commit.php
362 * @param string $log <p>
363 * String log text to commit
364 * </p>
365 * @param array $targets <p>
366 * Array of local paths of files to be committed
367 * </p>
368 * This parameter must be an array, a string for a single
369 * target is not acceptable.
370 * Relative paths will be resolved as if the current working directory was the one that contains the PHP binary. To use the calling script's working directory, use <b>realpath</b> or dirname(__FILE__).
371 * @param bool $recursive [optional] <p>
372 * Boolean flag to disable recursive committing of
373 * directories in the <i>targets</i> array.
374 * Default is <b>TRUE</b>.
375 * </p>
376 * @return array array in form of:
377 * </p>
378 * <pre>
379 * array(
380 * 0 => integer revision number of commit
381 * 1 => string ISO 8601 date and time of commit
382 * 2 => name of committer
383 * )
384 * </pre>
385 * <p>
386 * Returns <b>FALSE</b> on failure.
387 */
388function svn_commit ($log, array $targets, $recursive = true) {}
389
390function svn_lock () {}
391
392function svn_unlock () {}
393
394/**
395 * (PECL svn >= 0.1.0)<br/>
396 * Schedules the addition of an item in a working directory
397 * @link http://php.net/manual/en/function.svn-add.php
398 * @param string $path <p>
399 * Path of item to add.
400 * </p>
401 * Relative paths will be resolved as if the current working directory was the one that contains the PHP binary. To use the calling script's working directory, use <b>realpath</b> or dirname(__FILE__).
402 * @param bool $recursive [optional] <p>
403 * If item is directory, whether or not to recursively add
404 * all of its contents. Default is <b>TRUE</b>
405 * </p>
406 * @param bool $force [optional] <p>
407 * If true, Subversion will recurse into already versioned directories
408 * in order to add unversioned files that may be hiding in those
409 * directories. Default is <b>FALSE</b>
410 * </p>
411 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
412 */
413function svn_add ($path, $recursive = true, $force = false) {}
414
415/**
416 * (PECL svn >= 0.1.0)<br/>
417 * Returns the status of working copy files and directories
418 * @link http://php.net/manual/en/function.svn-status.php
419 * @param string $path <p>
420 * Local path to file or directory to retrieve status of.
421 * </p>
422 * Relative paths will be resolved as if the current working directory was the one that contains the PHP binary. To use the calling script's working directory, use <b>realpath</b> or dirname(__FILE__).
423 * @param int $flags [optional] <p>
424 * Any combination of <b>SVN_NON_RECURSIVE</b>,
425 * <b>SVN_ALL</b> (regardless of modification status),
426 * <b>SVN_SHOW_UPDATES</b> (entries will be added for items
427 * that are out-of-date), <b>SVN_NO_IGNORE</b> (disregard
428 * svn:ignore properties when scanning for new files)
429 * and <b>SVN_IGNORE_EXTERNALS</b>.
430 * </p>
431 * @return array a numerically indexed array of associative arrays detailing
432 * the status of items in the repository:
433 * </p>
434 * <pre>
435 * Array (
436 * [0] => Array (
437 * // information on item
438 * )
439 * [1] => ...
440 * )
441 * </pre>
442 * <p>
443 * The information on the item is an associative array that can contain
444 * the following keys:
445 * </p>
446 * path
447 * String path to file/directory of this entry on local filesystem.
448 * text_status
449 * Status of item's text. Refer to status constants for possible values.
450 * repos_text_status
451 * Status of item's text in repository. Only accurate if
452 * <i>update</i> was set to <b>TRUE</b>.
453 * Refer to status constants for possible values.
454 * prop_status
455 * Status of item's properties. Refer to status constants for possible values.
456 * repos_prop_status
457 * Status of item's property in repository. Only accurate if
458 * <i>update</i> was set to <b>TRUE</b>. Refer to status constants for possible values.
459 * locked
460 * Whether or not the item is locked. (Only set if <b>TRUE</b>.)
461 * copied
462 * Whether or not the item was copied (scheduled for addition with
463 * history). (Only set if <b>TRUE</b>.)
464 * switched
465 * Whether or not the item was switched using the switch command.
466 * (Only set if <b>TRUE</b>)
467 * <p>
468 * These keys are only set if the item is versioned:
469 * </p>
470 * name
471 * Base name of item in repository.
472 * url
473 * URL of item in repository.
474 * repos
475 * Base URL of repository.
476 * revision
477 * Integer revision of item in working copy.
478 * kind
479 * Type of item, i.e. file or directory. Refer to type constants for possible values.
480 * schedule
481 * Scheduled action for item, i.e. addition or deletion. Constants
482 * for these magic numbers are not available, they can
483 * be emulated by using:
484 * <code>
485 * if (!defined('svn_wc_schedule_normal')) {
486 * define('svn_wc_schedule_normal', 0); // nothing special
487 * define('svn_wc_schedule_add', 1); // item will be added
488 * define('svn_wc_schedule_delete', 2); // item will be deleted
489 * define('svn_wc_schedule_replace', 3); // item will be added and deleted
490 * }
491 * </code>
492 * deleted
493 * Whether or not the item was deleted, but parent revision lags
494 * behind. (Only set if <b>TRUE</b>.)
495 * absent
496 * Whether or not the item is absent, that is, Subversion knows that
497 * there should be something there but there isn't. (Only set if
498 * <b>TRUE</b>.)
499 * incomplete
500 * Whether or not the entries file for a directory is incomplete.
501 * (Only set if <b>TRUE</b>.)
502 * cmt_date
503 * Integer Unix timestamp of last commit date. (Unaffected by <i>update</i>.)
504 * cmt_rev
505 * Integer revision of last commit. (Unaffected by <i>update</i>.)
506 * cmt_author
507 * String author of last commit. (Unaffected by <i>update
508 */
509function svn_status ($path, $flags = 0) {}
510
511/**
512 * (PECL svn >= 0.1.0)<br/>
513 * Update working copy
514 * @link http://php.net/manual/en/function.svn-update.php
515 * @param string $path <p>
516 * Path to local working copy.
517 * </p>
518 * Relative paths will be resolved as if the current working directory was the one that contains the PHP binary. To use the calling script's working directory, use <b>realpath</b> or dirname(__FILE__).
519 * @param int $revno [optional] <p>
520 * Revision number to update to, default is <b>SVN_REVISION_HEAD</b>.
521 * </p>
522 * @param bool $recurse [optional] <p>
523 * Whether or not to recursively update directories.
524 * </p>
525 * @return int new revision number on success, returns <b>FALSE</b> on failure.
526 */
527function svn_update ($path, $revno = SVN_REVISION_HEAD, $recurse = true) {}
528
529/**
530 * (PECL svn >= 0.2.0)<br/>
531 * Imports an unversioned path into a repository
532 * @link http://php.net/manual/en/function.svn-import.php
533 * @param string $path <p>
534 * Path of file or directory to import.
535 * </p>
536 * Relative paths will be resolved as if the current working directory was the one that contains the PHP binary. To use the calling script's working directory, use <b>realpath</b> or dirname(__FILE__).
537 * @param string $url <p>
538 * Repository URL to import into.
539 * </p>
540 * @param bool $nonrecursive <p>
541 * Whether or not to refrain from recursively processing directories.
542 * </p>
543 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
544 */
545function svn_import ($path, $url, $nonrecursive) {}
546
547function svn_info () {}
548
549/**
550 * (PECL svn >= 0.3.0)<br/>
551 * Export the contents of a SVN directory
552 * @link http://php.net/manual/en/function.svn-export.php
553 * @param string $frompath <p>
554 * The path to the current repository.
555 * </p>
556 * @param string $topath <p>
557 * The path to the new repository.
558 * </p>
559 * @param bool $working_copy [optional] <p>
560 * If <b>TRUE</b>, it will export uncommitted files from the working copy.
561 * </p>
562 * @param int $revision_no [optional]
563 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
564 */
565function svn_export ($frompath, $topath, $working_copy = true, $revision_no = -1) {}
566
567function svn_copy () {}
568
569function svn_switch () {}
570
571/**
572 * (PECL svn >= 0.3.0)<br/>
573 * Get the SVN blame for a file
574 * @link http://php.net/manual/en/function.svn-blame.php
575 * @param string $repository_url <p>
576 * The repository URL.
577 * </p>
578 * @param int $revision_no [optional] <p>
579 * The revision number.
580 * </p>
581 * @return array An array of SVN blame information separated by line
582 * which includes the revision number, line number, line of code,
583 * author, and date.
584 */
585function svn_blame ($repository_url, $revision_no = SVN_REVISION_HEAD) {}
586
587/**
588 * (PECL svn >= 0.4.0)<br/>
589 * Delete items from a working copy or repository.
590 * @link http://php.net/manual/en/function.svn-delete.php
591 * @param string $path <p>
592 * Path of item to delete.
593 * </p>
594 * Relative paths will be resolved as if the current working directory was the one that contains the PHP binary. To use the calling script's working directory, use <b>realpath</b> or dirname(__FILE__).
595 * @param bool $force [optional] <p>
596 * If <b>TRUE</b>, the file will be deleted even if it has local modifications.
597 * Otherwise, local modifications will result in a failure. Default is
598 * <b>FALSE</b>
599 * </p>
600 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
601 */
602function svn_delete ($path, $force = false) {}
603
604/**
605 * (PECL svn >= 0.4.0)<br/>
606 * Creates a directory in a working copy or repository
607 * @link http://php.net/manual/en/function.svn-mkdir.php
608 * @param string $path <p>
609 * The path to the working copy or repository.
610 * </p>
611 * @param string $log_message [optional]
612 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
613 */
614function svn_mkdir ($path, $log_message = null) {}
615
616/**
617 * @link http://php.net/manual/en/ref.svn.php
618 * @param string $src_path
619 * @param string $dst_path
620 * @param bool $force [optional]
621 * @return mixed
622 */
623function svn_move ($src_path, $dst_path, $force = false) {}
624
625/**
626 * @link http://php.net/manual/en/ref.svn.php
627 * @param string $path
628 * @param bool $recurse [optional]
629 * @param int $revision [optional]
630 * @return mixed
631 */
632function svn_proplist ($path, $recurse = false, $revision) {}
633
634/**
635 * @param string $path
636 * @param string $property_name
637 * @param bool $recurse [optional]
638 * @param int $revision [optional]
639 * @return mixed
640 */
641function svn_propget ($path, $property_name, $recurse = false, $revision) {}
642
643/**
644 * (PECL svn >= 0.1.0)<br/>
645 * Create a new subversion repository at path
646 * @link http://php.net/manual/en/function.svn-repos-create.php
647 * @param string $path <p>
648 * Its description
649 * </p>
650 * @param array $config [optional] <p>
651 * Its description
652 * </p>
653 * @param array $fsconfig [optional] <p>
654 * Its description
655 * </p>
656 * @return resource What the function returns, first on success, then on failure. See
657 * also the &#38;return.success; entity
658 */
659function svn_repos_create ($path, array $config = null, array $fsconfig = null) {}
660
661/**
662 * (PECL svn >= 0.1.0)<br/>
663 * Run recovery procedures on the repository located at path.
664 * @link http://php.net/manual/en/function.svn-repos-recover.php
665 * @param string $path <p>
666 * Its description
667 * </p>
668 * @return bool What the function returns, first on success, then on failure. See
669 * also the &#38;return.success; entity
670 */
671function svn_repos_recover ($path) {}
672
673/**
674 * (PECL svn >= 0.1.0)<br/>
675 * Make a hot-copy of the repos at repospath; copy it to destpath
676 * @link http://php.net/manual/en/function.svn-repos-hotcopy.php
677 * @param string $repospath <p>
678 * Its description
679 * </p>
680 * @param string $destpath <p>
681 * Its description
682 * </p>
683 * @param bool $cleanlogs <p>
684 * Its description
685 * </p>
686 * @return bool What the function returns, first on success, then on failure. See
687 * also the &#38;return.success; entity
688 */
689function svn_repos_hotcopy ($repospath, $destpath, $cleanlogs) {}
690
691/**
692 * (PECL svn >= 0.1.0)<br/>
693 * Open a shared lock on a repository.
694 * @link http://php.net/manual/en/function.svn-repos-open.php
695 * @param string $path <p>
696 * Its description
697 * </p>
698 * @return resource What the function returns, first on success, then on failure. See
699 * also the &#38;return.success; entity
700 */
701function svn_repos_open ($path) {}
702
703/**
704 * (PECL svn >= 0.1.0)<br/>
705 * Gets a handle on the filesystem for a repository
706 * @link http://php.net/manual/en/function.svn-repos-fs.php
707 * @param resource $repos <p>
708 * Its description
709 * </p>
710 * @return resource What the function returns, first on success, then on failure. See
711 * also the &#38;return.success; entity
712 */
713function svn_repos_fs ($repos) {}
714
715/**
716 * (PECL svn >= 0.2.0)<br/>
717 * Create a new transaction
718 * @link http://php.net/manual/en/function.svn-repos-fs-begin-txn-for-commit.php
719 * @param resource $repos <p>
720 * Its description
721 * </p>
722 * @param int $rev <p>
723 * Its description
724 * </p>
725 * @param string $author <p>
726 * Its description
727 * </p>
728 * @param string $log_msg <p>
729 * Its description
730 * </p>
731 * @return resource What the function returns, first on success, then on failure. See
732 * also the &#38;return.success; entity
733 */
734function svn_repos_fs_begin_txn_for_commit ($repos, $rev, $author, $log_msg) {}
735
736/**
737 * (PECL svn >= 0.2.0)<br/>
738 * Commits a transaction and returns the new revision
739 * @link http://php.net/manual/en/function.svn-repos-fs-commit-txn.php
740 * @param resource $txn <p>
741 * Its description
742 * </p>
743 * @return int What the function returns, first on success, then on failure. See
744 * also the &#38;return.success; entity
745 */
746function svn_repos_fs_commit_txn ($txn) {}
747
748/**
749 * (PECL svn >= 0.1.0)<br/>
750 * Get a handle on a specific version of the repository root
751 * @link http://php.net/manual/en/function.svn-fs-revision-root.php
752 * @param resource $fs <p>
753 * Its description
754 * </p>
755 * @param int $revnum <p>
756 * Its description
757 * </p>
758 * @return resource What the function returns, first on success, then on failure. See
759 * also the &#38;return.success; entity
760 */
761function svn_fs_revision_root ($fs, $revnum) {}
762
763/**
764 * (PECL svn >= 0.1.0)<br/>
765 * Determines what kind of item lives at path in a given repository fsroot
766 * @link http://php.net/manual/en/function.svn-fs-check-path.php
767 * @param resource $fsroot <p>
768 * Its description
769 * </p>
770 * @param string $path <p>
771 * Its description
772 * </p>
773 * @return int What the function returns, first on success, then on failure. See
774 * also the &#38;return.success; entity
775 */
776function svn_fs_check_path ($fsroot, $path) {}
777
778/**
779 * (PECL svn >= 0.1.0)<br/>
780 * Fetches the value of a named property
781 * @link http://php.net/manual/en/function.svn-fs-revision-prop.php
782 * @param resource $fs <p>
783 * Its description
784 * </p>
785 * @param int $revnum <p>
786 * Its description
787 * </p>
788 * @param string $propname <p>
789 * Its description
790 * </p>
791 * @return string What the function returns, first on success, then on failure. See
792 * also the &#38;return.success; entity
793 */
794function svn_fs_revision_prop ($fs, $revnum, $propname) {}
795
796/**
797 * (PECL svn >= 0.1.0)<br/>
798 * Enumerates the directory entries under path; returns a hash of dir names to file type
799 * @link http://php.net/manual/en/function.svn-fs-dir-entries.php
800 * @param resource $fsroot <p>
801 * Its description
802 * </p>
803 * @param string $path <p>
804 * Its description
805 * </p>
806 * @return array What the function returns, first on success, then on failure. See
807 * also the &#38;return.success; entity
808 */
809function svn_fs_dir_entries ($fsroot, $path) {}
810
811/**
812 * (PECL svn >= 0.1.0)<br/>
813 * Returns the revision in which path under fsroot was created
814 * @link http://php.net/manual/en/function.svn-fs-node-created-rev.php
815 * @param resource $fsroot <p>
816 * Its description
817 * </p>
818 * @param string $path <p>
819 * Its description
820 * </p>
821 * @return int What the function returns, first on success, then on failure. See
822 * also the &#38;return.success; entity
823 */
824function svn_fs_node_created_rev ($fsroot, $path) {}
825
826/**
827 * (PECL svn >= 0.1.0)<br/>
828 * Returns the number of the youngest revision in the filesystem
829 * @link http://php.net/manual/en/function.svn-fs-youngest-rev.php
830 * @param resource $fs <p>
831 * Its description
832 * </p>
833 * @return int What the function returns, first on success, then on failure. See
834 * also the &#38;return.success; entity
835 */
836function svn_fs_youngest_rev ($fs) {}
837
838/**
839 * (PECL svn >= 0.1.0)<br/>
840 * Returns a stream to access the contents of a file from a given version of the fs
841 * @link http://php.net/manual/en/function.svn-fs-file-contents.php
842 * @param resource $fsroot <p>
843 * Its description
844 * </p>
845 * @param string $path <p>
846 * Its description
847 * </p>
848 * @return resource What the function returns, first on success, then on failure. See
849 * also the &#38;return.success; entity
850 */
851function svn_fs_file_contents ($fsroot, $path) {}
852
853/**
854 * (PECL svn >= 0.1.0)<br/>
855 * Returns the length of a file from a given version of the fs
856 * @link http://php.net/manual/en/function.svn-fs-file-length.php
857 * @param resource $fsroot <p>
858 * Its description
859 * </p>
860 * @param string $path <p>
861 * Its description
862 * </p>
863 * @return int What the function returns, first on success, then on failure. See
864 * also the &#38;return.success; entity
865 */
866function svn_fs_file_length ($fsroot, $path) {}
867
868/**
869 * (PECL svn >= 0.2.0)<br/>
870 * Creates and returns a transaction root
871 * @link http://php.net/manual/en/function.svn-fs-txn-root.php
872 * @param resource $txn <p>
873 * Its description
874 * </p>
875 * @return resource What the function returns, first on success, then on failure. See
876 * also the &#38;return.success; entity
877 */
878function svn_fs_txn_root ($txn) {}
879
880/**
881 * (PECL svn >= 0.2.0)<br/>
882 * Creates a new empty file, returns true if all is ok, false otherwise
883 * @link http://php.net/manual/en/function.svn-fs-make-file.php
884 * @param resource $root <p>
885 * Its description
886 * </p>
887 * @param string $path <p>
888 * Its description
889 * </p>
890 * @return bool What the function returns, first on success, then on failure. See
891 * also the &#38;return.success; entity
892 */
893function svn_fs_make_file ($root, $path) {}
894
895/**
896 * (PECL svn >= 0.2.0)<br/>
897 * Creates a new empty directory, returns true if all is ok, false otherwise
898 * @link http://php.net/manual/en/function.svn-fs-make-dir.php
899 * @param resource $root <p>
900 * Its description
901 * </p>
902 * @param string $path <p>
903 * Its description
904 * </p>
905 * @return bool What the function returns, first on success, then on failure. See
906 * also the &#38;return.success; entity
907 */
908function svn_fs_make_dir ($root, $path) {}
909
910/**
911 * (PECL svn >= 0.2.0)<br/>
912 * Creates and returns a stream that will be used to replace
913 * @link http://php.net/manual/en/function.svn-fs-apply-text.php
914 * @param resource $root <p>
915 * Its description
916 * </p>
917 * @param string $path <p>
918 * Its description
919 * </p>
920 * @return resource What the function returns, first on success, then on failure. See
921 * also the &#38;return.success; entity
922 */
923function svn_fs_apply_text ($root, $path) {}
924
925/**
926 * (PECL svn >= 0.2.0)<br/>
927 * Copies a file or a directory, returns true if all is ok, false otherwise
928 * @link http://php.net/manual/en/function.svn-fs-copy.php
929 * @param resource $from_root <p>
930 * Its description
931 * </p>
932 * @param string $from_path <p>
933 * Its description
934 * </p>
935 * @param resource $to_root <p>
936 * Its description
937 * </p>
938 * @param string $to_path <p>
939 * Its description
940 * </p>
941 * @return bool What the function returns, first on success, then on failure. See
942 * also the &#38;return.success; entity
943 */
944function svn_fs_copy ($from_root, $from_path, $to_root, $to_path) {}
945
946/**
947 * (PECL svn >= 0.2.0)<br/>
948 * Deletes a file or a directory, return true if all is ok, false otherwise
949 * @link http://php.net/manual/en/function.svn-fs-delete.php
950 * @param resource $root <p>
951 * Its description
952 * </p>
953 * @param string $path <p>
954 * Its description
955 * </p>
956 * @return bool What the function returns, first on success, then on failure. See
957 * also the &#38;return.success; entity
958 */
959function svn_fs_delete ($root, $path) {}
960
961/**
962 * (PECL svn >= 0.2.0)<br/>
963 * Create a new transaction
964 * @link http://php.net/manual/en/function.svn-fs-begin-txn2.php
965 * @param resource $repos <p>
966 * Its description
967 * </p>
968 * @param int $rev <p>
969 * Its description
970 * </p>
971 * @return resource What the function returns, first on success, then on failure. See
972 * also the &#38;return.success; entity
973 */
974function svn_fs_begin_txn2 ($repos, $rev) {}
975
976/**
977 * (PECL svn >= 0.2.0)<br/>
978 * Return true if the path points to a directory, false otherwise
979 * @link http://php.net/manual/en/function.svn-fs-is-dir.php
980 * @param resource $root <p>
981 * Its description
982 * </p>
983 * @param string $path <p>
984 * Its description
985 * </p>
986 * @return bool What the function returns, first on success, then on failure. See
987 * also the &#38;return.success; entity
988 */
989function svn_fs_is_dir ($root, $path) {}
990
991/**
992 * (PECL svn >= 0.2.0)<br/>
993 * Return true if the path points to a file, false otherwise
994 * @link http://php.net/manual/en/function.svn-fs-is-file.php
995 * @param resource $root <p>
996 * Its description
997 * </p>
998 * @param string $path <p>
999 * Its description
1000 * </p>
1001 * @return bool What the function returns, first on success, then on failure. See
1002 * also the &#38;return.success; entity
1003 */
1004function svn_fs_is_file ($root, $path) {}
1005
1006/**
1007 * (PECL svn >= 0.1.0)<br/>
1008 * Returns the value of a property for a node
1009 * @link http://php.net/manual/en/function.svn-fs-node-prop.php
1010 * @param resource $fsroot <p>
1011 * Its description
1012 * </p>
1013 * @param string $path <p>
1014 * Its description
1015 * </p>
1016 * @param string $propname <p>
1017 * Its description
1018 * </p>
1019 * @return string What the function returns, first on success, then on failure. See
1020 * also the &#38;return.success; entity
1021 */
1022function svn_fs_node_prop ($fsroot, $path, $propname) {}
1023
1024/**
1025 * (PECL svn >= 0.2.0)<br/>
1026 * Return true if everything is ok, false otherwise
1027 * @link http://php.net/manual/en/function.svn-fs-change-node-prop.php
1028 * @param resource $root <p>
1029 * Its description
1030 * </p>
1031 * @param string $path <p>
1032 * Its description
1033 * </p>
1034 * @param string $name <p>
1035 * Its description
1036 * </p>
1037 * @param string $value <p>
1038 * Its description
1039 * </p>
1040 * @return bool What the function returns, first on success, then on failure. See
1041 * also the &#38;return.success; entity
1042 */
1043function svn_fs_change_node_prop ($root, $path, $name, $value) {}
1044
1045/**
1046 * (PECL svn >= 0.2.0)<br/>
1047 * Return true if content is different, false otherwise
1048 * @link http://php.net/manual/en/function.svn-fs-contents-changed.php
1049 * @param resource $root1 <p>
1050 * Its description
1051 * </p>
1052 * @param string $path1 <p>
1053 * Its description
1054 * </p>
1055 * @param resource $root2 <p>
1056 * Its description
1057 * </p>
1058 * @param string $path2 <p>
1059 * Its description
1060 * </p>
1061 * @return bool What the function returns, first on success, then on failure. See
1062 * also the &#38;return.success; entity
1063 */
1064function svn_fs_contents_changed ($root1, $path1, $root2, $path2) {}
1065
1066/**
1067 * (PECL svn >= 0.2.0)<br/>
1068 * Return true if props are different, false otherwise
1069 * @link http://php.net/manual/en/function.svn-fs-props-changed.php
1070 * @param resource $root1 <p>
1071 * Its description
1072 * </p>
1073 * @param string $path1 <p>
1074 * Its description
1075 * </p>
1076 * @param resource $root2 <p>
1077 * Its description
1078 * </p>
1079 * @param string $path2 <p>
1080 * Its description
1081 * </p>
1082 * @return bool What the function returns, first on success, then on failure. See
1083 * also the &#38;return.success; entity
1084 */
1085function svn_fs_props_changed ($root1, $path1, $root2, $path2) {}
1086
1087/**
1088 * (PECL svn >= 0.2.0)<br/>
1089 * Abort a transaction, returns true if everything is okay, false otherwise
1090 * @link http://php.net/manual/en/function.svn-fs-abort-txn.php
1091 * @param resource $txn <p>
1092 * Its description
1093 * </p>
1094 * @return bool What the function returns, first on success, then on failure. See
1095 * also the &#38;return.success; entity
1096 */
1097function svn_fs_abort_txn ($txn) {}
1098
1099
1100/**
1101 * Property for default username to use when performing basic authentication
1102 * @link http://php.net/manual/en/svn.constants.php
1103 */
1104define ('SVN_AUTH_PARAM_DEFAULT_USERNAME', "svn:auth:username");
1105
1106/**
1107 * Property for default password to use when performing basic authentication
1108 * @link http://php.net/manual/en/svn.constants.php
1109 */
1110define ('SVN_AUTH_PARAM_DEFAULT_PASSWORD', "svn:auth:password");
1111define ('SVN_AUTH_PARAM_NON_INTERACTIVE', "svn:auth:non-interactive");
1112define ('SVN_AUTH_PARAM_DONT_STORE_PASSWORDS', "svn:auth:dont-store-passwords");
1113define ('SVN_AUTH_PARAM_NO_AUTH_CACHE', "svn:auth:no-auth-cache");
1114define ('SVN_AUTH_PARAM_SSL_SERVER_FAILURES', "svn:auth:ssl:failures");
1115define ('SVN_AUTH_PARAM_SSL_SERVER_CERT_INFO', "svn:auth:ssl:cert-info");
1116define ('SVN_AUTH_PARAM_CONFIG', "svn:auth:config-category-servers");
1117define ('SVN_AUTH_PARAM_SERVER_GROUP', "svn:auth:server-group");
1118define ('SVN_AUTH_PARAM_CONFIG_DIR', "svn:auth:config-dir");
1119
1120/**
1121 * Custom property for ignoring SSL cert verification errors
1122 * @link http://php.net/manual/en/svn.constants.php
1123 */
1124define ('PHP_SVN_AUTH_PARAM_IGNORE_SSL_VERIFY_ERRORS', "php:svn:auth:ignore-ssl-verify-errors");
1125
1126/**
1127 * Configuration key that determines filesystem type
1128 * @link http://php.net/manual/en/svn.constants.php
1129 */
1130define ('SVN_FS_CONFIG_FS_TYPE', "fs-type");
1131
1132/**
1133 * Filesystem is Berkeley-DB implementation
1134 * @link http://php.net/manual/en/svn.constants.php
1135 */
1136define ('SVN_FS_TYPE_BDB', "bdb");
1137
1138/**
1139 * Filesystem is native-filesystem implementation
1140 * @link http://php.net/manual/en/svn.constants.php
1141 */
1142define ('SVN_FS_TYPE_FSFS', "fsfs");
1143
1144/**
1145 * svn:date
1146 * @link http://php.net/manual/en/svn.constants.php
1147 */
1148define ('SVN_PROP_REVISION_DATE', "svn:date");
1149
1150/**
1151 * svn:original-date
1152 * @link http://php.net/manual/en/svn.constants.php
1153 */
1154define ('SVN_PROP_REVISION_ORIG_DATE', "svn:original-date");
1155
1156/**
1157 * svn:author
1158 * @link http://php.net/manual/en/svn.constants.php
1159 */
1160define ('SVN_PROP_REVISION_AUTHOR', "svn:author");
1161
1162/**
1163 * svn:log
1164 * @link http://php.net/manual/en/svn.constants.php
1165 */
1166define ('SVN_PROP_REVISION_LOG', "svn:log");
1167define ('SVN_REVISION_INITIAL', 1);
1168
1169/**
1170 * Magic number (-1) specifying the HEAD revision
1171 * @link http://php.net/manual/en/svn.constants.php
1172 */
1173define ('SVN_REVISION_HEAD', -1);
1174define ('SVN_REVISION_BASE', -2);
1175define ('SVN_REVISION_COMMITTED', -3);
1176define ('SVN_REVISION_PREV', -4);
1177define ('SVN_REVISION_UNSPECIFIED', -5);
1178define ('SVN_NON_RECURSIVE', 1);
1179define ('SVN_DISCOVER_CHANGED_PATHS', 2);
1180define ('SVN_OMIT_MESSAGES', 4);
1181define ('SVN_STOP_ON_COPY', 8);
1182define ('SVN_ALL', 16);
1183define ('SVN_SHOW_UPDATES', 32);
1184define ('SVN_NO_IGNORE', 64);
1185
1186/**
1187 * Status does not exist
1188 * @link http://php.net/manual/en/svn.constants.php
1189 */
1190define ('SVN_WC_STATUS_NONE', 1);
1191
1192/**
1193 * Item is not versioned in working copy
1194 * @link http://php.net/manual/en/svn.constants.php
1195 */
1196define ('SVN_WC_STATUS_UNVERSIONED', 2);
1197
1198/**
1199 * Item exists, nothing else is happening
1200 * @link http://php.net/manual/en/svn.constants.php
1201 */
1202define ('SVN_WC_STATUS_NORMAL', 3);
1203
1204/**
1205 * Item is scheduled for addition
1206 * @link http://php.net/manual/en/svn.constants.php
1207 */
1208define ('SVN_WC_STATUS_ADDED', 4);
1209
1210/**
1211 * Item is versioned but missing from the working copy
1212 * @link http://php.net/manual/en/svn.constants.php
1213 */
1214define ('SVN_WC_STATUS_MISSING', 5);
1215
1216/**
1217 * Item is scheduled for deletion
1218 * @link http://php.net/manual/en/svn.constants.php
1219 */
1220define ('SVN_WC_STATUS_DELETED', 6);
1221
1222/**
1223 * Item was deleted and then re-added
1224 * @link http://php.net/manual/en/svn.constants.php
1225 */
1226define ('SVN_WC_STATUS_REPLACED', 7);
1227
1228/**
1229 * Item (text or properties) was modified
1230 * @link http://php.net/manual/en/svn.constants.php
1231 */
1232define ('SVN_WC_STATUS_MODIFIED', 8);
1233
1234/**
1235 * Item's local modifications were merged with repository modifications
1236 * @link http://php.net/manual/en/svn.constants.php
1237 */
1238define ('SVN_WC_STATUS_MERGED', 9);
1239
1240/**
1241 * Item's local modifications conflicted with repository modifications
1242 * @link http://php.net/manual/en/svn.constants.php
1243 */
1244define ('SVN_WC_STATUS_CONFLICTED', 10);
1245
1246/**
1247 * Item is unversioned but configured to be ignored
1248 * @link http://php.net/manual/en/svn.constants.php
1249 */
1250define ('SVN_WC_STATUS_IGNORED', 11);
1251
1252/**
1253 * Unversioned item is in the way of a versioned resource
1254 * @link http://php.net/manual/en/svn.constants.php
1255 */
1256define ('SVN_WC_STATUS_OBSTRUCTED', 12);
1257
1258/**
1259 * Unversioned path that is populated using svn:externals
1260 * @link http://php.net/manual/en/svn.constants.php
1261 */
1262define ('SVN_WC_STATUS_EXTERNAL', 13);
1263
1264/**
1265 * Directory does not contain complete entries list
1266 * @link http://php.net/manual/en/svn.constants.php
1267 */
1268define ('SVN_WC_STATUS_INCOMPLETE', 14);
1269
1270/**
1271 * Absent
1272 * @link http://php.net/manual/en/svn.constants.php
1273 */
1274define ('SVN_NODE_NONE', 0);
1275
1276/**
1277 * File
1278 * @link http://php.net/manual/en/svn.constants.php
1279 */
1280define ('SVN_NODE_FILE', 1);
1281
1282/**
1283 * Directory
1284 * @link http://php.net/manual/en/svn.constants.php
1285 */
1286define ('SVN_NODE_DIR', 2);
1287
1288/**
1289 * Something Subversion cannot identify
1290 * @link http://php.net/manual/en/svn.constants.php
1291 */
1292define ('SVN_NODE_UNKNOWN', 3);
1293define ('SVN_WC_SCHEDULE_NORMAL', 0);
1294define ('SVN_WC_SCHEDULE_ADD', 1);
1295define ('SVN_WC_SCHEDULE_DELETE', 2);
1296define ('SVN_WC_SCHEDULE_REPLACE', 3);