Created
November 18, 2010 15:51
-
-
Save chregu/705157 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include('./src/jackalope/autoloader.php'); | |
$user = 'admin'; | |
$pass = 'admin'; | |
$workspace = 'default'; | |
$cred = new \PHPCR\SimpleCredentials($user, $pass); | |
$repo = new \jackalope\Repository('http://localhost:8080/server', null); //let jackalope factory create the transport | |
$sess = $repo->login($cred, $workspace); | |
$node = $sess->getNode('/foo.pdf/jcr:content'); | |
print $node->getProperty("jcr:lastModified")->getString(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment