Fractas\GoogleDfp\GoogleDfpController
Google DFP Controller class.
- Copyright: 2017 Fractas Labs
- License: https://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
Synopsis
class GoogleDfpController
extends Extension
{
- // methods
- public void GoogleDfpSlotByID()
- public void GoogleDfpSlotByAlias()
- public void GoogleDfpSlotList()
- public bool GoogleDfpEnabled()
- public void onAfterInit()
Hierarchy
Extends
- SilverStripe\Core\Extension
Methods
public
- GoogleDfpEnabled() — Check method if is module enabled, used in GoogleDfpSlot.ss
- GoogleDfpSlotByAlias() — Renders a banners HTML to template using $alias as identifier
- GoogleDfpSlotByID() — Renders a banners HTML to template using $id as identifier
- GoogleDfpSlotList() — Fills a javascript with data array needed to initialize a banner show
- onAfterInit() — Renders a javascript needed to initialize a banner show