-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from phansys/composer
[Upgrade] Move to NSs, autoloading with PSR-4 and dependency management
- Loading branch information
Showing
8 changed files
with
212 additions
and
140 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"name": "softlayer/softlayer-api-php-client", | ||
"description": "SoftLayer API PHP client", | ||
"keywords": ["softlayer"], | ||
"homepage": "http://sldn.softlayer.com/article/PHP", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "SoftLayer Development Team", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"require": { | ||
"php": ">=5.3", | ||
"ext-xmlrpc": "*", | ||
"ext-soap": "*" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"SoftLayer\\": "src/" | ||
} | ||
}, | ||
"extra": { | ||
"branch-alias": { | ||
"dev-master": "1.0-dev" | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,12 +27,14 @@ | |
* POSSIBILITY OF SUCH DAMAGE. | ||
*/ | ||
|
||
namespace SoftLayer\Common; | ||
|
||
/** | ||
* A simple object mask implementation. | ||
* | ||
* Use this class instead of stdClass when defining object masks in SoftLayer | ||
* Use this class instead of \stdClass when defining object masks in SoftLayer | ||
* API calls. This one is a bit easier to use. For example, to declare a new | ||
* object mask using stdClass enter: | ||
* object mask using \stdClass enter: | ||
* | ||
* $objectMask = new StdClass(); | ||
* $objectMask->datacenter = new StdClass(); | ||
|
@@ -41,16 +43,16 @@ | |
* $objectMask->softwareComponents = new StdClass(); | ||
* $objectMask->softwareComponents->passwords = new StdClass(); | ||
* | ||
* Building an object mask using SoftLayer_ObjectMask is a bit easier to | ||
* Building an object mask using ObjectMask is a bit easier to | ||
* type: | ||
* | ||
* $objectMask = new SoftLayer_ObjectMask(); | ||
* $objectMask = new ObjectMask(); | ||
* $objectMask->datacenter; | ||
* $objectMask->serverRoom; | ||
* $objectMask->provisionDate; | ||
* $objectMask->sofwareComponents->passwords; | ||
* | ||
* Use SoftLayer_SoapClient::setObjectMask() to set these object masks before | ||
* Use SoapClient::setObjectMask() to set these object masks before | ||
* making your SoftLayer API calls. | ||
* | ||
* For more on object mask usage in the SoftLayer API please see | ||
|
@@ -65,10 +67,10 @@ | |
* @author SoftLayer Technologies, Inc. <[email protected]> | ||
* @copyright Copyright (c) 2009 - 2010, Softlayer Technologies, Inc | ||
* @license http://sldn.softlayer.com/article/License | ||
* @see SoftLayer_SoapClient::setObjectMask() | ||
* @see SoftLayer_XmlrpcClient::setObjectMask() | ||
* @see SoapClient::setObjectMask() | ||
* @see XmlRpcClient::setObjectMask() | ||
*/ | ||
class SoftLayer_ObjectMask | ||
class ObjectMask | ||
{ | ||
/** | ||
* Define an object mask value | ||
|
@@ -77,7 +79,7 @@ class SoftLayer_ObjectMask | |
*/ | ||
public function __get($var) | ||
{ | ||
$this->{$var} = new SoftLayer_ObjectMask(); | ||
$this->{$var} = new self(); | ||
|
||
return $this->{$var}; | ||
} | ||
|
Oops, something went wrong.