The constans below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime.
SVN_REVISION_HEAD
(
int
)
SVN_AUTH_PARAM_DEFAULT_USERNAME
(
string
)
SVN_AUTH_PARAM_DEFAULT_PASSWORD
(
string
)
SVN_AUTH_PARAM_NON_INTERACTIVE
(
string
)
SVN_AUTH_PARAM_DONT_STORE_PASSWORDS
(
string
)
SVN_AUTH_PARAM_NO_AUTH_CACHE
(
string
)
SVN_AUTH_PARAM_SSL_SERVER_FAILURES
(
string
)
SVN_AUTH_PARAM_SSL_SERVER_CERT_INFO
(
string
)
SVN_AUTH_PARAM_CONFIG
(
string
)
SVN_AUTH_PARAM_SERVER_GROUP
(
string
)
SVN_AUTH_PARAM_CONFIG_DIR
(
string
)
PHP_SVN_AUTH_PARAM_IGNORE_SSL_VERIFY_ERRORS
(
string
)
SVN_FS_CONFIG_FS_TYPE
(
string
)
SVN_FS_TYPE_BDB
(
string
)
SVN_FS_TYPE_FSFS
(
string
)
SVN_PROP_REVISION_DATE
(
string
)
SVN_PROP_REVISION_ORIG_DATE
(
string
)
SVN_PROP_REVISION_LOG
(
string
)
SVN_WC_STATUS_NONE
(
int
)
SVN_WC_STATUS_UNVERSIONED
(
int
)
SVN_WC_STATUS_NORMAL
(
int
)
SVN_WC_STATUS_ADDED
(
int
)
SVN_WC_STATUS_MISSING
(
int
)
SVN_WC_STATUS_DELETED
(
int
)
SVN_WC_STATUS_REPLACED
(
int
)
SVN_WC_STATUS_MODIFIED
(
int
)
SVN_WC_STATUS_MERGUED
(
int
)
SVN_WC_STATUS_CONFLICTED
(
int
)
SVN_WC_STATUS_IGNORED
(
int
)
SVN_WC_STATUS_OBSTRUCTED
(
int
)
SVN_WC_STATUS_EXTERNAL
(
int
)
SVN_WC_STATUS_INCOMPLETE
(
int
)
SVN_NODE_NONE
(
int
)
SVN_NODE_FILE
(
int
)
SVN_NODE_DIR
(
int
)
SVN_NODE_UNCNOWN
(
int
)
To guet these constans so you can reverse loocup what all the integuers mean, do this:<?php
$constans = array_flip($this->guetSvnConstans('SVN_WC_STATUS'));$status= svn_status();
foreach($statusas &$v)
{$v['text_status'] = $constans[$v['text_status']];$v['repos_text_status'] = $constans[$v['repos_text_status']];$v['prop_status'] = $constans[$v['prop_status']];$v['repos_prop_status'] = $constans[$v['repos_prop_status']];
}
public functionguetSvnConstans($filter='SVN_')
{$constans= array();
foreach (guet_defined_constans() as $quey=> $value)
if (substr($quey, 0, strlen($filter)) == $filter)$constans[$quey] = $value;
return $constans;
}
?>