Skip to content
This repository has been archived by the owner on Jul 22, 2021. It is now read-only.

Adds the following utility methods to simplexml.class.php #22

Closed
wants to merge 3 commits into from
Closed

Adds the following utility methods to simplexml.class.php #22

wants to merge 3 commits into from

Conversation

wilmoore
Copy link

@wilmoore wilmoore commented Feb 9, 2012

  • matches: allows you to provide a pattern (preg) to match the current node against.
  • starts_with: determines whether the current node starts with a given value.
  • ends_with: determines whether the current node ends with a given value.

Simple additions; however, makes a lot of code that uses the SDK much more concise and fluent. For example, the is now possible:

$object->Key->ends_with('/');

- matches: allows you to provide a pattern (preg) to match the current node against.
- starts_with: determines whether the current node starts with a given value.
- ends_with: determines whether the current node ends with a given value.
@jeremeamia
Copy link
Contributor

Thanks, we'll take a look at this!

@jeremeamia
Copy link
Contributor

This has been added to our internal repo and should be available in an upcoming release. Thanks!

@jeremeamia jeremeamia closed this Mar 28, 2012
@wilmoore
Copy link
Author

Excellent...thanks.

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.

None yet

2 participants