My favorites | Sign in
Project Home Downloads Wiki Issues Source
Repository:
Checkout   Browse   Changes   Clones    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
To Run this example execute the following

php -f cmis_ls.php <rest-endpoint> <username> <password> <folderpath> [debug option 1|2]

Notes:
+ The if the folder path has spaces in it you must URL encode the folder path i.e. /Data Dictionary --> /Data+Dictionary
+ The debug option can be omitted. If it is 1 the program will display all of the arrays associated with the objects that
are returned. If the debug option is 2 or more, then the XML returned will also be displayed
+ This will not work on Pre CMIS-1.0 repositories
+ There is virtually no error checking.
+ Your version of php must support DOMDocument and curl

Example Runs
php -f cmis_ls.php http://cmis.alfresco.com/service/api/cmis admin admin /
php -f cmis_ls.php http://cmis.alfresco.com/service/api/cmis admin admin /Data+Dictionary 1


The cmis_repository_wrapper.php library provided the following functionality
+ Encapsulates access to a CMIS 1.0 compliant repository
+ Provides utilities for getting information out of:
+ Workspace (the repositoryInfo)
+ Object Entries
+ Non-Hierarchical Object feeds

More information will be on the Wiki for this Google Code Project and on
the author's blog http://oldschooltechie.com/


==============
Adding Calls that mimick the domain model

Change log

178f0e61403f by rich...@localhost.localdomain on Dec 3, 2009   Diff
Added some Methods that Match the Domain
model -specifically getObject and
getObjectByPath
Left CMISRepositoryWrapper as is
Created CMISService to extend
CMISRepositoryWrapper to add the Domain
level Methods

Modified cmis_ls to take advantage of
getObjectByPath
Go to: 
Project members, sign in to write a code review

Older revisions

0723a35c8327 by rich...@localhost.localdomain on Nov 30, 2009   Diff
Commit of PHP CMIS Tools
Created the initial release of a set
of
PHP tools for CMIS -- this is not a
full
...
All revisions of this file

File info

Size: 1274 bytes, 30 lines
Powered by Google Project Hosting