Source for file class.acBlockType_image.php

Documentation is available at class.acBlockType_image.php

  1. <?php
  2. {
  3.     function __construct(&$content_obj$params array())
  4.     {
  5.         $params['block_type''image';
  6.         parent::__construct($content_obj$params);
  7.         
  8.         $config cmsms()->GetConfig();
  9.         
  10.         $this->SetProperty('prefix'isset($params['prefix']$params['prefix''thumb_');
  11.         $this->SetProperty('exclude'!isset($params['exclude']|| ac_utils::IsFalse($params['exclude']));
  12.         $this->SetProperty('dir'cms_join_path($config['uploads_path']isset($params['dir']$params['dir'get_site_preference('contentimage_path')));
  13.         $this->SetProperty('inputname'isset($params['inputname']$params['inputname'$this->GetProperty('id'));
  14.     }
  15.     
  16.     public function GetInput()
  17.     {
  18.         $dropdown create_file_dropdown(
  19.             $this->GetProperty('inputname'),
  20.             $this->GetProperty('dir'),
  21.             $this->GetContent(),
  22.             'jpg,jpeg,png,gif',
  23.             '',
  24.             $this->GetProperty('allow_none'),
  25.             '',
  26.             $this->GetProperty('prefix'),
  27.             $this->GetProperty('exclude')
  28.         );
  29.         if$dropdown === false )
  30.             $dropdown lang('error_retrieving_file_list');
  31.         
  32.         return $dropdown;
  33.     }
  34. }
  35. ?>

Documentation generated on Tue, 09 Oct 2012 16:57:03 +0200 by phpDocumentor 1.4.1