BUG 9897 uploadDoc() de Alfresco no te notifica si la ruta a un archivo es incorrecta IMPROVEMENT

- Methods descriptions are not correct
- Changing the methods descriptions for the return value, "string" to "object"
This commit is contained in:
Julio Cesar Laura
2013-05-15 14:42:31 -04:00
parent 3ab37b7059
commit 0bee2a7b15

View File

@@ -36,7 +36,7 @@
* @param string | $user | Valid Admin username to connect to Alfresco server
* @param string | $pwd | Valid Admin password to connect to Alfresco server
*
* @return string | $result | Response |
* @return object | $result | Response |
*
*/
G::LoadSystem('restClient');
@@ -174,7 +174,7 @@ function createFolder($alfrescoServerUrl, $parentFolder, $folderName, $user, $pw
* @param string | $user | Valid Admin username to connect to Alfresco server
* @param string | $pwd | Valid Admin password to connect to Alfresco server
*
* @return string | $result | Response |
* @return object | $result | Response |
*
*/
function deleteObject($alfrescoServerUrl, $objetcId, $user, $pwd)
@@ -183,7 +183,7 @@ function deleteObject($alfrescoServerUrl, $objetcId, $user, $pwd)
$alfresco_exec = RestClient::delete($alfresco_url, $user, $pwd, "application/atom+xml");
$alfresco_res = G::json_decode($alfresco_exec->getResponse());
echo($alfresco_res);
return $alfresco_res;
}
@@ -255,7 +255,7 @@ function downloadDoc($alfrescoServerUrl, $pathFile, $pathFolder, $user, $pwd, $m
* @param string | $user | Valid Admin username to connect to Alfresco server
* @param string | $pwd | Valid Admin password to connect to Alfresco server
*
* @return string | $result | Response |
* @return object | $result | Response |
*
*/
function getCheckedoutFiles($alfrescoServerUrl, $user, $pwd)
@@ -284,7 +284,7 @@ function getCheckedoutFiles($alfrescoServerUrl, $user, $pwd)
* @param string | $user | Valid Admin username to connect to Alfresco server
* @param string | $pwd | Valid Admin password to connect to Alfresco server
*
* @return string | $result | Response |
* @return object | $result | Response |
*
*/
function getFolderChildren($alfrescoServerUrl, $folderId, $user, $pwd)
@@ -317,7 +317,7 @@ function getFolderChildren($alfrescoServerUrl, $folderId, $user, $pwd)
* @param string | $path | Path of document to be Uploaded
* @param string | $mainFolder | The main folder in alfreco to save the files
*
* @return string | $result | Response |
* @return object | $result | Response |
*
*/
function uploadDoc($alfrescoServerUrl, $fileSource, $title, $description, $docType, $user, $pwd, $path = '', $mainFolder= 'Sites')