|
1 | 1 | <!DOCTYPE html>
|
2 |
| -<html><head><!-- To render these slides you need Slippy https://github.com/Seldaek/slippy --><title>PHPCR Introduction</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="author" content="PHPCR"><meta name="email" content="phpcr-users@googlegroups.com"><meta name="date" content="2011-09-29"><meta name="venue" content="The Internets"><!-- Slippy core file and dependencies --><script type="text/javascript">/*! |
| 2 | +<html><head><!-- To render these slides you need Slippy https://github.com/Seldaek/slippy --><title>PHPCR Introduction</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="author" content="PHPCR"><meta name="email" content="phpcr-users@googlegroups.com"><meta name="date" content="2012-03-22"><meta name="venue" content="The Internets"><!-- Slippy core file and dependencies --><script type="text/javascript">/*! |
3 | 3 | * jQuery JavaScript Library v1.5.1
|
4 | 4 | * http://jquery.com/
|
5 | 5 | *
|
@@ -1905,11 +1905,11 @@ <h2>PHPCR Features</h2>
|
1905 | 1905 | <li>Search nodes</li>
|
1906 | 1906 | <li>Versioning</li>
|
1907 | 1907 | <li>Capability discovery</li>
|
1908 |
| - <li>XML import (*) and export</li> |
| 1908 | + <li>XML import and export</li> |
1909 | 1909 | <li>Locking & Transactions</li>
|
1910 | 1910 | <li>Permissions & Access Control (*)</li>
|
1911 |
| - <li>Observation (*)</li> |
1912 |
| - </ul><br><p>(*) Currently under work</p> |
| 1911 | + <li>Observation</li> |
| 1912 | + </ul><br><p>(*) Not yet implemented in Jackalope</p> |
1913 | 1913 | </div>
|
1914 | 1914 |
|
1915 | 1915 | <div class="slide">
|
@@ -1948,10 +1948,10 @@ <h2>Properties</h2>
|
1948 | 1948 | <div class="slide">
|
1949 | 1949 | <h2>Primary Node Types</h2>
|
1950 | 1950 | <ul><li>Defines allowed names and types for properties and child nodes</li>
|
1951 |
| - <li>Every node must have a type</li> |
| 1951 | + <li>Every node must have a primary node type</li> |
1952 | 1952 | <li>Use <tt>nt:unstructured</tt> to allow anything</li>
|
1953 | 1953 | <li>Some other built-in types: <tt>nt:address, nt:folder, nt:file</tt> ...</li>
|
1954 |
| - <li>Define custom types or just use <tt>nt:unstructured</tt></li> |
| 1954 | + <li>Define custom types to control your "schema"</li> |
1955 | 1955 | </ul></div>
|
1956 | 1956 |
|
1957 | 1957 | <div class="slide">
|
@@ -1992,11 +1992,14 @@ <h1>PHPCR code examples</h1>
|
1992 | 1992 | <h2>Connecting via PHPCR</h2>
|
1993 | 1993 | <pre class="brush: php">
|
1994 | 1994 | // start of implementation specific configuration //
|
| 1995 | +use Jackalope\RepositoryFactoryJackrabbit as Factory; |
| 1996 | + |
1995 | 1997 | $parameters = array(
|
1996 | 1998 | 'jackalope.jackrabbit_uri'
|
1997 | 1999 | => 'http://localhost:8080/server'
|
1998 | 2000 | );
|
1999 |
| -$repository = \Jackalope\RepositoryFactoryJackrabbit::getRepository($parameters); |
| 2001 | + |
| 2002 | +$repository = Factory::getRepository($parameters); |
2000 | 2003 | // end of implementation specific configuration //
|
2001 | 2004 |
|
2002 | 2005 | $creds = new \PHPCR\SimpleCredentials('user','pw');
|
@@ -2027,7 +2030,7 @@ <h2>CRUD operations</h2>
|
2027 | 2030 | </div>
|
2028 | 2031 |
|
2029 | 2032 | <div class="slide">
|
2030 |
| - <h2>Tree API</h2> |
| 2033 | + <h2>Tree Traversal API</h2> |
2031 | 2034 | <pre class="brush: php">
|
2032 | 2035 | $node = $session->getNode('/site/content');
|
2033 | 2036 |
|
|
0 commit comments