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
imap: | |
server: imap.gmail.com | |
port: 993 | |
user: YOUR GMAIL ADDRESS | |
password: YOUR PASSWORD | |
mailbox: INBOX |
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
todo.owner: | |
node: owner | |
class: sys.app.dynamic_object | |
attributes: | |
- { name: 'name', required: 'true', type: 'string' } | |
- { name: 'email', required: 'true', type: 'string' } | |
content: | |
- { name: 'lists', type: 'hash', contains: 'todo.list', key: 'id' } |
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
site: | |
model: cms.cms_site | |
attributes: | |
- { name: 'id', required: 'true', type: 'string' } | |
children: | |
- { name: 'owner', type: 'owner' } | |
- { name: 'theme', type: 'theme' } | |
owner: | |
model: cms.cms_owner | |
attributes: |
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
<site id='awesome'> | |
<owner id='jongilkison' name='Jon Gilkison' profile='http://jon/' /> | |
<theme template='template' navigation='left' stylesheet='http://style/sheet'> | |
<fonts> | |
<font for='header' value='Arial' /> | |
<font for='links' value='Comic Sans' /> | |
<font for='body' value='Times New Roman' /> | |
</fonts> | |
<colors> | |
<color for='header' value='#FFF' /> |
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
paragraph: | |
model: cms.cms_paragraph | |
attributes: | |
- { name: 'id', type: 'string' } | |
children: | |
- { name: 'value', type: 'html' } |
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 | |
uses("system.app.serializable"); | |
/** | |
* Represents a CMS site | |
* | |
* [[ | |
* serializer: { node: 'site', config: 'cms/serializer' } | |
* ]] | |
*/ |
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
<? | |
uses('system.util.serializer'); | |
$site=new CMSSite(); | |
$site->id = 'test'; | |
// ... etc ... | |
$serialized = Serializer::SerializeObject($site, Serializer::FORMAT_XML); |
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
<? | |
uses('system.util.serializer'); | |
$site=new CMSSite(); | |
$site->id = 'test'; | |
// ... etc ... | |
$site = Serializer::DeserializeObject($serialized, Serializer::FORMAT_XML, 'cms/serialization'); |
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
<? | |
$input=Input::Get(); |
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
<? | |
$input=Input::Get(); | |
if ($input->has('name','age','sex')) | |
{ | |
// ... | |
} | |
else | |
throw new InvalidParametersException("Required form variables missing."); |
OlderNewer