Merge pull request #851 from Juanitou/patch-2

Update docs/en/reference/dataextension.md
This commit is contained in:
Will Rossiter 2012-10-07 12:32:28 -07:00
commit 62adea5882

View File

@ -27,7 +27,7 @@ class you want to extend.
### Adding a extension to a built-in class ### Adding a extension to a built-in class
Sometimes you will want to add extension to classes that you didn't make. For example, you might want to add the Sometimes you will want to add extension to classes that you didn't make. For example, you might want to add the
`[api:ForumRole]` extension to the `[api:Member]` object. ForumRole extension to the `[api:Member]` object.
:::php :::php
@ -38,7 +38,7 @@ For example above we want to override Member with a Custom Member so we would wr
:::php :::php
// add to mysite/_config.php // add to mysite/_config.php
Object::add_extension('Member', 'CustomMember');</code> Object::add_extension('Member', 'CustomMember');
## Implementation ## Implementation