*/ /** * Załączenie klasy stPluginWebpageBackendComponents * którą rozszerza stWebpageBackendComponents * * @package stWebpagePlugin * @subpackage actions */ require_once dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'lib'.DIRECTORY_SEPARATOR.'stPluginWebpageBackendComponents.class.php'; /** * Klasa stWebpageBackendComponents * * @package stWebpagePlugin * @subpackage actions */ class stWebpageBackendComponents extends stPluginWebpageBackendComponents { // pusta klasa rozszerzajaca stPluginDemoBackendComponents public function executeTermsVersion() { $app_terms = WebpagePeer::retrieveByState('APP_TERMS'); if($app_terms){ $this->content = $app_terms->getContent(); } } public function executePrivacyVersion() { $app_privacy = WebpagePeer::retrieveByState('APP_PRIVACY'); if($app_privacy){ $this->content = $app_privacy->getContent(); } } public function executeRight2cancelVersion() { $app_right2cancel = WebpagePeer::retrieveByState('APP_RIGHT2CANCEL'); if($app_right2cancel){ $this->content = $app_right2cancel->getContent(); } } } ?>