12-01-2009 09:26 AM
$nodes = $conexion->session->query($conexion->spacesStore, "PATH:\"app:company_home/cm:Gerhonte/cm:OPE/cm:Certificados_de_Notas\"");
$guestHome = $nodes[0];
12-01-2009 11:27 AM
12-02-2009 02:35 AM
12-03-2009 04:18 AM
// The web service end point URL for the Alfresco repository
$repositoryUrl = "http://localhost:8080/alfresco/api";
// The user credentials we are going to use
$userName = "admin";
$password = "admin";
// Create the repository object baseed on the repository URL. The repository represents the Alfresco repository we are connecting to.
// It can be used to authenticate users and as a session factory.
$repository = new Repository($repositoryUrl);
// Authenticate the user details for the repository we want to connect to. Assuming authentication is succesful we will be returned
// a ticket. The ticket is a string which can be used to create Session's
$ticket = $repository->authenticate($userName, $password);
// Using the ticket we can now create a session. In general it is better to create a new session for a new page or page sequence rather
// than creating one and using across many pages as this helps to prevent resource usage from creaping up.
$session = $repository->createSession($ticket);
$currentStore = "user://alfrescoUserStore";
$nodes = $session->query($currentStore, $statement);
12-03-2009 04:29 AM
12-03-2009 05:09 AM
$spacesStore= new SpacesStore($session)
public function query($store, $statement, $language='lucene');http://wiki.alfresco.com/wiki/Alfresco_PHP_API#Session
Executes a given query statement on the specified store. The query language can be specified, but the default is lucene.
The result is returned as an array of matching Node's.
* $store - the Store to execute the query upon
* $statement - the query statement
* $language - optional parameter specifying the query language
* return Node[] - array of matching nodes
12-03-2009 05:17 AM
01-04-2010 07:41 AM
01-11-2010 09:01 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.