ultimix

- Main Page
- Data Structures
- Files
- Examples

- Data Structures
- Data Structure Index
- Data Fields

Public Member Functions | Data Fields
ad_campaign_algorithms_1_0_0 Class Reference

## Public Member Functions
| __construct ()
| select_for_creator ($uid)

## Data Fields
| $AdCampaignAccess = false
| $Security = false

## Detailed Description

Class provides routine for ad banners.

Author
  Dodonov A.A.

Definition at line 26 of file ad_campaign_algorithms.php.

## Constructor & Destructor Documentation

__construct | ( |  | ) |

Constructor.

Author
  Dodonov A.A.

Definition at line 51 of file ad_campaign_algorithms.php.

{
try
{
$this->AdCampaignAccess = get_package( 'ad::ad_campaign::ad_campaign_access' , 'last' , __FILE__ );
$this->Security = get_package( 'security' , 'last' , __FILE__ );
}
catch( Exception $e )
{
$a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
}
}

## Member Function Documentation

select_for_creator | ( |  | $uid | ) |

Selecting records.

Parameters

  $uid | - id of the user who has created the company.

Returns
  Array of objects.

Exceptions

  Exception | - An exception of this type is thrown.

Author
  Dodonov A.A.

Definition at line 86 of file ad_campaign_algorithms.php.

{
try
{
$uid = $this->Security->get( $uid , 'integer' );
return( $this->AdCampaignAccess->unsafe_select( "creator = $uid" ) );
}
catch( Exception $e )
{
$a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
}
}

## Field Documentation

$AdCampaignAccess = false

Cached objects.

Author
  Dodonov A.A.

Definition at line 38 of file ad_campaign_algorithms.php.

$Security = false

Definition at line 39 of file ad_campaign_algorithms.php.

The documentation for this class was generated from the following file:

- packages/ad/packages/ad_campaign/packages/ad_campaign_algorithms/ad_campaign_algorithms.php