Ejemplo n.º 1
0
 /**
  * Constructor
  *
  * @param icms_db_legacy_Database $db database connection object
  */
 public function __construct(&$db)
 {
     parent::__construct($db, 'audio', 'audio_id', 'title', '', basename(dirname(dirname(__FILE__))));
     $module = icms::handler("icms_module")->getByDirname(basename(dirname(dirname(__FILE__))), TRUE);
     $this->enableUpload(array("audio/mp3", "audio/x-mp3", "audio/mpeg"), $module->config['maxfilesize_audio']);
 }
Ejemplo n.º 2
0
 /**
  * Constructor for the object handler
  *
  * @param object $db A database object
  * @param string $modulename The directory name for the module
  * @return icms_ipf_category_Handler
  */
 public function __construct($db, $modulename)
 {
     parent::__construct($db, 'category', 'categoryid', 'name', 'description', $modulename);
 }
 /**
  * Constructor
  *
  * @param icms_db_legacy_Database $db database connection object
  */
 public function __construct(&$db)
 {
     parent::__construct($db, "slide", "slide_id", "title", "caption", "billboard");
     $this->enableUpload(array("image/gif", "image/jpeg", "image/pjpeg", "image/png"), 512000, 800, 600);
 }
Ejemplo n.º 4
0
	public function __construct(& $db) {
		icms_ipf_Handler::__construct($db, 'blocksadmin', 'bid', 'title', 'content', 'system');
		$this->table = $this->db->prefix('newblocks');

		$this->addPermission('block_read', _CO_SYSTEM_BLOCKSADMIN_BLOCKRIGHTS, _CO_SYSTEM_BLOCKSADMIN_BLOCKRIGHTS_DSC);
	}
Ejemplo n.º 5
0
	/**
	 * Constructor
	 * @param object $db	Database object
	 */
	public function __construct(&$db) {
		parent::__construct($db, 'adsense', 'adsenseid', 'tag', 'description', 'system');
		$this->buildFormats();
	}
Ejemplo n.º 6
0
 /**
  * constrcutor
  *
  * @param object $db database connection
  */
 public function __construct(&$db)
 {
     parent::__construct($db, "data_file", "fileid", "caption", "desc", "icms");
 }
Ejemplo n.º 7
0
 public function __construct(&$db)
 {
     parent::__construct($db, 'block', 'bid', 'title', 'content', 'icms');
     $this->className = 'icms_view_block_Object';
     $this->table = $this->db->prefix('newblocks');
 }
Ejemplo n.º 8
0
 /**
  * Constructor
  *
  * @param icms_db_legacy_Database $db
  */
 public function __construct(&$db)
 {
     parent::__construct($db, 'field', 'fieldid', 'field_name', 'field_description', basename(dirname(dirname(__FILE__))));
     $this->enableUpload(array('image/gif', 'image/jpeg', 'image/pjpeg', 'image/png'), 5120, 18, 18);
 }
Ejemplo n.º 9
0
 /**
  * Constructor
  *
  * @param IcmsDatabase $db
  */
 public function __construct(&$db)
 {
     parent::__construct($db, 'blockposition', 'id', 'title', 'description', 'icms');
     $this->className = 'icms_view_block_position_Object';
     $this->table = $this->db->prefix('block_positions');
 }
Ejemplo n.º 10
0
 /**
  * Constructor
  *
  * @param icms_db_legacy_Database $db database connection object
  */
 public function __construct(&$db)
 {
     parent::__construct($db, 'tribes', 'tribes_id', 'title', '', basename(dirname(dirname(__FILE__))));
     $module = icms::handler("icms_module")->getByDirname(basename(dirname(dirname(__FILE__))), TRUE);
     $this->enableUpload(array('image/gif', 'image/jpeg', 'image/pjpeg', 'image/png'), $module->config['maxfilesize_picture'], $module->config['max_original_width'], $module->config['max_original_height']);
 }
Ejemplo n.º 11
0
 /**
  * constrcutor
  *
  * @param object $db database connection
  */
 public function __construct(&$db)
 {
     parent::__construct($db, "data_urllink", "urllinkid", "caption", "desc", "icms");
 }
Ejemplo n.º 12
0
 /**
  * Create a new instance of the handler
  * 
  * @param object $db
  */
 public function __construct($db)
 {
     global $icmsConfigUser;
     parent::__construct($db, "userrank", "rank_id", "rank_title", "", "system");
     $this->table = $this->db->prefix("ranks");
     $this->enableUpload(array("image/gif", "image/jpeg", "image/pjpeg", "image/x-png", "image/png"), $icmsConfigUser["rank_maxsize"], $icmsConfigUser["rank_width"], $icmsConfigUser["rank_height"]);
 }
Ejemplo n.º 13
0
 /**
  * Constructor
  *
  * @param IcmsDatabase $db
  */
 public function __construct(&$db)
 {
     icms_ipf_Handler::__construct($db, 'blockspadmin', 'id', 'title', 'description', 'system');
     $this->table = $this->db->prefix('block_positions');
 }
Ejemplo n.º 14
0
	/**
	 * Constructor
	 * 
	 * @param object $db	Database object
	 */
	public function __construct($db) {
		parent::__construct($db, 'autotasks', 'sat_id', 'sat_name', 'sat_code', 'system');
	}
Ejemplo n.º 15
0
	/**
	 * Constructor
	 * 
	 * @param $db
	 */
	public function __construct(& $db) {
		icms_ipf_Handler::__construct($db, 'pages', 'page_id', 'page_title', '' , 'system');
		$this->table = $db->prefix('icmspage');
	}
Ejemplo n.º 16
0
 /**
  * Constructor
  *
  * @param icms_db_legacy_Database $db database connection object
  */
 public function __construct(&$db)
 {
     parent::__construct($db, 'profile', 'profileid', '', '', basename(dirname(dirname(__FILE__))));
     $this->_fHandler = icms_getModuleHandler('field', basename(dirname(dirname(__FILE__))), 'profile');
 }
Ejemplo n.º 17
0
	/**
	 * Creates an instance of the mimetype handler
	 * 
	 * @param object $db
	 */
	public function __construct($db) {
		parent::__construct($db, 'mimetype', 'mimetypeid', 'mimetypeid', 'name', 'system');
		$this->addPermission('use_extension', _CO_ICMS_MIMETYPE_PERMISSION_VIEW, _CO_ICMS_MIMETYPE_PERMISSION_VIEW_DSC);
	}
 /**
  * Constructor
  *
  * @param icms_db_legacy_Database $db database connection object
  */
 public function __construct(&$db)
 {
     parent::__construct($db, "slideshow", "slideshow_id", "title", "billboard");
 }
Ejemplo n.º 19
0
	/**
	 * Constructor for the ratings handler
	 * 
	 * @param object $db
	 */
	public function __construct($db) {
		parent::__construct($db, 'rating', 'ratingid', 'rate', '', 'system');
		$this->generalSQL = 'SELECT * FROM ' . $this->table . ' AS ' . $this->_itemname . ' INNER JOIN ' . $this->db->prefix('users') . ' AS user ON ' . $this->_itemname . '.uid=user.uid';

		$this->_rateOptions[1] = 1;
		$this->_rateOptions[2] = 2;
		$this->_rateOptions[3] = 3;
		$this->_rateOptions[4] = 4;
		$this->_rateOptions[5] = 5;

		$this->pluginsObject = new icms_plugins_Handler();
	}
Ejemplo n.º 20
0
 /**
  * Constructor
  *
  * @param icms_db_legacy_Database $db databae object
  */
 public function __construct(&$db)
 {
     parent::__construct($db, 'tribeuser', 'tribeuser_id', 'tribeuser_id', '', basename(dirname(dirname(__FILE__))));
 }
Ejemplo n.º 21
0
 /**
  * Constructor
  *
  * @param icms_db_legacy_Database $db database connection object
  */
 public function __construct(&$db)
 {
     parent::__construct($db, 'friendship', 'friendship_id', 'friend1_uid', '', basename(dirname(dirname(__FILE__))));
 }
 public function IcmsPersistableObjectHandler(&$db, $itemname, $keyname, $idenfierName, $summaryName, $modulename)
 {
     parent::__construct($db, $itemname, $keyname, $idenfierName, $summaryName, $modulename);
     $this->_deprecated = icms_core_Debug::setDeprecated('icms_ipf_Handler', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
 }
Ejemplo n.º 23
0
 /**
  * Constructor
  *
  * @param icms_db_legacy_Database $db database connection object
  */
 public function __construct(&$db)
 {
     parent::__construct($db, 'configs', 'configs_id', '', '', basename(dirname(dirname(__FILE__))));
 }
Ejemplo n.º 24
0
 /**
  * Constructor
  *
  * @param icms_db_legacy_Database $db database connection object
  */
 public function __construct(&$db)
 {
     parent::__construct($db, 'category', 'catid', 'cat_title', 'cat_description', basename(dirname(dirname(__FILE__))));
 }
Ejemplo n.º 25
0
 /**
  * Constructor
  *
  * @param icms_db_legacy_Database $db database connection object
  */
 public function __construct(&$db)
 {
     parent::__construct($db, 'regstep', 'step_id', 'step_name', 'step_name', basename(dirname(dirname(__FILE__))));
 }
Ejemplo n.º 26
0
 /**
  * Constructor
  *
  * @param icms_db_legacy_Database $db database object
  */
 public function __construct(&$db)
 {
     parent::__construct($db, 'tribepost', 'post_id', 'title', '', basename(dirname(dirname(__FILE__))));
 }
Ejemplo n.º 27
0
	/**
	 * Constructor
	 * @param object $db
	 */
	public function __construct($db) {
		parent::__construct($db, 'customtag', 'customtagid', 'name', 'description', 'system');
		$this->addPermission('view_customtag', _CO_ICMS_CUSTOMTAG_PERMISSION_VIEW, _CO_ICMS_CUSTOMTAG_PERMISSION_VIEW_DSC);
	}
Ejemplo n.º 28
0
 /**
  * Constructor
  *
  * @param icms_db_legacy_Database $db database object
  */
 public function __construct(&$db)
 {
     parent::__construct($db, 'visibility', array('fieldid', 'user_group', 'profile_group'), '', '', basename(dirname(dirname(__FILE__))));
 }
Ejemplo n.º 29
0
 public function __construct(&$db)
 {
     parent::__construct($db, 'page', 'page_id', 'page_title', '', 'icms');
     $this->table = $db->prefix('icmspage');
     $this->className = 'icms_data_page_Object';
 }
Ejemplo n.º 30
0
 public function __construct(&$db)
 {
     parent::__construct($db, 'content', 'content_id', 'content_title', 'content_body', 'content');
     icms_loadLanguageFile(basename(dirname(dirname(__FILE__))), 'common');
     $this->addPermission('content_read', _CO_CONTENT_CONTENT_READ, _CO_CONTENT_CONTENT_READ_DSC);
 }