| 1 | <?php |
||
| 12 | class GoogleDfpController extends Extension |
||
|
|
|||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Renders a banners HTML to template using $id as identifier |
||
| 16 | * |
||
| 17 | * |
||
| 18 | * @param $id |
||
| 19 | */ |
||
| 20 | public function GoogleDfpSlotByID($id = false) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Renders a banners HTML to template using $alias as identifier |
||
| 29 | * |
||
| 30 | * |
||
| 31 | * @param $alias |
||
| 32 | */ |
||
| 33 | public function GoogleDfpSlotByAlias($alias = false) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Fills a javascript with data array needed to initialize a banner show |
||
| 42 | * |
||
| 43 | */ |
||
| 44 | public function GoogleDfpSlotList() |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Check method if is module enabled, used in GoogleDfpSlot.ss |
||
| 51 | * |
||
| 52 | * @return bool |
||
| 53 | */ |
||
| 54 | public function GoogleDfpEnabled() |
||
| 58 | |||
| 59 | /** |
||
| 60 | * Renders a javascript needed to initialize a banner show |
||
| 61 | * |
||
| 62 | */ |
||
| 63 | public function onAfterInit() |
||
| 69 | } |
||
| 70 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.