CustomMember extends wrong class.

CustomMember was extending the wrong class to be able to reference $this->owner.

Also, changed CustomMember to MyMemberExtension to remain consistent with the initial example.
This commit is contained in:
Michael Strong 2014-05-06 09:37:30 +01:00
parent 5a69cf67ff
commit 9e66db4fe1

View File

@ -73,7 +73,7 @@ property on the class.
:::php
<?php
class CustomMember extends Member {
class MyMemberExtension extends DataExtension {
public function alterFoo($foo) {
// outputs the original class
@ -101,7 +101,7 @@ variables to update:
:::php
<?php
class CustomMember extends DataExtension {
class MyMemberExtension extends DataExtension {
private static $db = array(
'Position' => 'Varchar',
@ -121,7 +121,7 @@ CMS fields for an object in an extension:
:::php
<?php
class CustomMember extends DataExtension {
class MyMemberExtension extends DataExtension {
private static $db = array(
'Position' => 'Varchar',