Fractas\GoogleDfp\GoogleDfpSlotHelper
Google DFP Slot Helper class
- Copyright: 2017 Fractas Labs
- License: https://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
Synopsis
class GoogleDfpSlotHelper
{
- // members
- private static $id;
- private static boolean $enable_in_dev = false;
- // methods
- public void GoogleDfpID()
- public static void enable_in_dev()
- public static boolean enabled()
- public static mixed slot_list()
- public static void slot_by_id()
- public static void slot_by_alias()
Hierarchy
Uses
- SilverStripe\Core\Extensible
- SilverStripe\Core\Injector\Injectable
- SilverStripe\Core\Config\Configurable
Members
private
- $enable_in_dev
- $id
Methods
public
- GoogleDfpID()
- enable_in_dev()
- enabled() — Check if ads should be enabled By default they are enabled in "live" enviroment
- slot_by_alias() — Get one banner by Alias name
- slot_by_id() — Get one banner by ID
- slot_list() — ID - unique identifier of banner Layout - Controller ClassName where banner should be rendered Alias - name of banner (used to distinguish ) AdUnitPath - Full path of the ad unit with the network code and ad unit code.