This file contains hidden or 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
<? | |
$cache=Cache::Get('mycache'); | |
$cache->set('somekey','somevalue'); |
This file contains hidden or 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
conf: | |
driver: apc | |
enabled: true | |
views: | |
driver: apc | |
enabled: true | |
controls: | |
driver: memcached | |
enabled: true | |
servers: |
This file contains hidden or 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
<? | |
$item=new Item(); | |
$class=AttributeReader::ClassAttributes($item); | |
echo $class->database; | |
echo $class->table; | |
$method=AttributeReader::PropertyAttributes($item,'uri'); |
This file contains hidden or 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
<? | |
/** | |
* Sample model | |
* | |
* [[ | |
* table: sample.item | |
* database: default | |
* read_only: false | |
* ]] | |
* |
This file contains hidden or 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
<? | |
class DumbClass | |
{ | |
/** | |
* Comment block | |
*/ | |
public function thing($parameter,$another) | |
{ | |
return false; | |
} |
This file contains hidden or 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
namespace SimpleWebService | |
{ | |
[HeavyMetalService(baseURI='/simple/',Name='Simple', Description='Simple service', Persistent=false)] | |
class Service | |
{ | |
[HeavyMetalMethod(URI='something',Name='Do Something',Description='Does something.')] | |
public void DoSomething() | |
{ | |
// … | |
} |
This file contains hidden or 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.app.dynamic_object'); | |
$data=array( | |
'foo' => 'bar', | |
'boo' => 'far' | |
); | |
$obj=new DynamicObject($data); |
This file contains hidden or 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.app.dynamic_object'); | |
$data=array( | |
'foo' => 'bar', | |
'boo' => 'far' | |
); | |
$obj=new DynamicObject($data); |
This file contains hidden or 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.app.dynamic_object'); | |
$obj=new DynamicObject(); | |
// dynamic properties | |
$obj->foo='bar'; | |
$obj->boo='far'; | |
// array access |
This file contains hidden or 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
<? | |
foreach($input as $key => $value) | |
echo "$key = $value"; |