Skip to content
This repository was archived by the owner on May 10, 2018. It is now read-only.

PHP SDK: Load collections and entities #2

Merged
merged 12 commits into from
Jun 27, 2012
Merged

Conversation

davidfstr
Copy link
Contributor

In particular, a SavedSearch collection and entity is loaded.

Unlike other SDKs, entities can also be loaded directly by name from the Service object.

$entries = array();
foreach ($xml->entry as $entryData)
{
$entries[] = $this->loadEntry($entryData);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does assigning to [] do?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It appends to the end of an array variable.

If the array variable does not exist, it creates it. My code always explicitly creates the array, so you shouldn't need to know that behavior.

@madhadron
Copy link
Contributor

If my blank and confused staring at the screen constitutes a code review, then it has been reviewed.

madhadron pushed a commit that referenced this pull request Jun 27, 2012
PHP SDK: Load collections and entities
@madhadron madhadron merged commit 4de4926 into develop Jun 27, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants