The constants 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_MERGED
(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_UNKNOWN
(int )
To get these constants so you can reverse lookup what all the integers mean, do this:
<?php
$constants = array_flip($this->getSvnConstants('SVN_WC_STATUS'));
$status = svn_status();
foreach($status as &$v)
{
$v['text_status'] = $constants[$v['text_status']];
$v['repos_text_status'] = $constants[$v['repos_text_status']];
$v['prop_status'] = $constants[$v['prop_status']];
$v['repos_prop_status'] = $constants[$v['repos_prop_status']];
}
public function getSvnConstants($filter='SVN_')
{
$constants = array();
foreach (get_defined_constants() as $key => $value)
if (substr($key, 0, strlen($filter)) == $filter)
$constants[$key] = $value;
return $constants;
}
?>