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
define(['getterSetter', function(getterSetter) { | |
return function(options) { | |
if (typeof options != 'object') { | |
options = {}; | |
} | |
// We assume you can't change your name! | |
this.name = options.name; | |
// Role, e.g. Web developer |
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
define([], function () { | |
return function(initValue, callback) { | |
var val = initValue; | |
if (typeof callback != 'function') { | |
callback = null; | |
} | |
return function (v) { | |
if (v !== undefined) { | |
val = v; |
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 | |
/** | |
* Class FileStorageFactory | |
* A factory class that instantiates the appropriate FileStorage engine | |
*/ | |
class MyProject_Service_FileStorageFactory | |
{ | |
/** | |
* Available file storage mechanisms |