Source for file class.acBlockType_module.php

Documentation is available at class.acBlockType_module.php

  1. <?php
  2. {
  3.     function __construct(&$content_obj$params array())
  4.     {
  5.         $params['block_type''module';
  6.         parent::__construct($content_obj$params);
  7.         $AC &ac_utils::get_module('AdvancedContent');
  8.         $this->SetProperty('module'isset($params['module']$params['module''');
  9.         $this->SetProperty('params'$params$this->GetProperties());
  10.     }
  11.     
  12.     public function GetInput()
  13.     {
  14.         $AC &ac_utils::get_module('AdvancedContent');
  15.         if($this->GetProperty('module'== '')
  16.             return $AC->lang('error_insufficient_blockparams','module',$this->GetProperty('name'));
  17.         
  18.         if!$module =$AC->GetModuleInstance($this->GetProperty('module')))
  19.             return $AC->lang('error_loading_module',$this->GetProperty('module'),$this->GetProperty('name'));
  20.         
  21.         if!$module->HasCapability('contentblocks') )
  22.             return $AC->lang('error_contentblock_support',$this->GetProperty('module'),$this->GetProperty('name'));
  23.         
  24.         return $module->GetContentBlockInput($this->GetProperty('id'),$this->GetContent(),$this->GetProperty('params'),$this->GetProperty('adding'));
  25.     }
  26. }
  27. ?>

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