Bitrix Site Manager Send feedback on this topic   

Classes

The CAdvBanner class is used with advertising banners.

Methods

Method Description
Set Creates a new banner or modifies an existing one.
GetList Returns a filtered list of banners.
GetByID Returns a banner by its ID.
Delete Deletes a banner.
Show Selects a random banner of the specified type, registers the banner show in the database and returns a ready to use HTML code of the banner (used in the site template code). The banner is selected according to its priority relative to priorities of other banners.
Click Registers a banner click in the database by the banner ID.
FixShow Registers the banner show in the database.
GetRandom Selects a random banner of the specified type, according to priority of each banner in the system. Returns an array containing the partial description of this banner.
GetHTML Returns a ready to use HTML code of the banner by the specified array describing this banner.

 

The CAdvContract class is used with advertising contracts.

Methods

Method Description
Set Creates a new contract, or modifies the existing one.
GetList Obtains a filtered list of contracts. 
GetByID Returns a contract by its ID.
Delete Deletes a contract and all banners attached to it.
GetUserPermissionArray Returns an array of permissions of a specified user for all contracts.
GetContractPermissionArray Returns an array of permissions of all users for a specified contract.
IsModuleAccess Returns true if the current user owns the specified permission, or false otherwise.

 

The CAdvType class is used with types of banners.

Methods

Method Description
Set Creates a new banner type, or modifies the existing one.
GetList Obtains a filtered list of banner types.
GetByID Returns a type by its symbolic ID.
Delete Deletes a type and all banners of this type.