ultimix

- Main Page
- Data Structures
- Files
- Examples

- File List
- Globals

ad_campaign_algorithms.php
Go to the documentation of this file.
1 <?php
2
3 /*
4 * This source code is a part of the Ultimix Project.
5 * It is distributed under BSD license. All other third side source code (like tinyMCE) is distributed under
6 * it's own license wich could be found from the corresponding files or sources.
7 * This source code is provided "as is" without any warranties or garanties.
8 *
9 * Have a nice day!
10 *
11 * @url http://ultimix.sorceforge.net
12 *
13 * @author Alexey "gdever" Dodonov
14 */
15
26 class ad_campaign_algorithms_1_0_0{
27
38 var $AdCampaignAccess = false;
39 var $Security = false;
40
51 function __construct()
52 {
53 try
54 {
55 $this->AdCampaignAccess = get_package( 'ad::ad_campaign::ad_campaign_access' , 'last' , __FILE__ );
56 $this->Security = get_package( 'security' , 'last' , __FILE__ );
57 }
58 catch( Exception $e )
59 {
60 $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
61 }
62 }
63
86 function select_for_creator( $uid )
87 {
88 try
89 {
90 $uid = $this->Security->get( $uid , 'integer' );
91
92 return( $this->AdCampaignAccess->unsafe_select( "creator = $uid" ) );
93 }
94 catch( Exception $e )
95 {
96 $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
97 }
98 }
99 }
100
101 ?>