Created
September 30, 2011 17:28
-
-
Save dtdesign/1254428 to your computer and use it in GitHub Desktop.
ITraversableObject implementation for WCF 2.0
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
| <?php | |
| $languageList = new LanguageList(); | |
| $languageList->readObjects(); | |
| echo '<pre>count = '.count($languageList)."\n\n"; | |
| // 3 | |
| foreach ($languageList as $languageID => $language) { | |
| echo $languageID . ' => ' . $language->languageID . "\n"; | |
| } | |
| // 1 => 1 | |
| // 2 => 2 | |
| // 3 => 3 | |
| echo "\n"; | |
| print_r($languageList->search(2)); | |
| // print_r of object with language id 2 | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment