Overview

Packages

  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Datatype
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationMain
    • NavigationTop
  • mpAutoloaderClassMap
  • None
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SearchSolr
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob

Classes

  • cHTML
  • cHTMLAlignmentTable
  • cHTMLArticle
  • cHTMLAside
  • cHTMLAudio
  • cHTMLButton
  • cHTMLCanvas
  • cHTMLCheckbox
  • cHTMLContentElement
  • cHTMLDiv
  • cHTMLFieldset
  • cHTMLFooter
  • cHTMLForm
  • cHTMLFormElement
  • cHTMLHeader
  • cHTMLHgroup
  • cHTMLHiddenField
  • cHTMLIFrame
  • cHTMLImage
  • cHTMLLabel
  • cHTMLLegend
  • cHTMLLink
  • cHTMLList
  • cHTMLListItem
  • cHTMLNav
  • cHTMLOptgroup
  • cHTMLOptionElement
  • cHTMLParagraph
  • cHTMLPasswordbox
  • cHTMLRadiobutton
  • cHTMLScript
  • cHTMLSection
  • cHTMLSelectElement
  • cHTMLSpan
  • cHTMLTable
  • cHTMLTableBody
  • cHTMLTableData
  • cHTMLTableHead
  • cHTMLTableHeader
  • cHTMLTableRow
  • cHTMLTextarea
  • cHTMLTextbox
  • cHTMLTime
  • cHTMLUpload
  • cHTMLVideo
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo
 1: <?php
 2: /**
 3:  * This file contains the cHTMLIFrame class.
 4:  *
 5:  * @package Core
 6:  * @subpackage GUI_HTML
 7:  * @version SVN Revision $Rev:$
 8:  *
 9:  * @author Simon Sprankel
10:  * @copyright four for business AG <www.4fb.de>
11:  * @license http://www.contenido.org/license/LIZENZ.txt
12:  * @link http://www.4fb.de
13:  * @link http://www.contenido.org
14:  */
15: 
16: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
17: 
18: /**
19:  * cHTMLIFrame class represents an iframe.
20:  *
21:  * @package Core
22:  * @subpackage GUI_HTML
23:  */
24: class cHTMLIFrame extends cHTML {
25: 
26:     /**
27:      * Creates an HTML iframe element.
28:      *
29:      * @return void
30:      */
31:     public function __construct() {
32:         parent::__construct();
33:         $this->_contentlessTag = false;
34:         $this->_tag = 'iframe';
35:     }
36: 
37:     /**
38:      * Sets this frame's source
39:      *
40:      * @param string|object $content String with the content or an object to
41:      *        render.
42:      * @return cHTMLIFrame $this
43:      */
44:     public function setSrc($src) {
45:         return $this->updateAttribute('src', $src);
46:     }
47: 
48:     /**
49:      * Sets this frame's width
50:      *
51:      * @param string $width Width of the item
52:      * @return cHTMLIFrame $this
53:      */
54:     public function setWidth($width) {
55:         return $this->updateAttribute('width', $width);
56:     }
57: 
58:     /**
59:      * Sets this frame's height
60:      *
61:      * @param string $height Height of the item
62:      * @return cHTMLIFrame $this
63:      */
64:     public function setHeight($height) {
65:         return $this->updateAttribute('height', $height);
66:     }
67: 
68:     /**
69:      * Sets wether this iframe should have a border or not
70:      *
71:      * @param string $border If 1 or true, this frame will have a border
72:      * @return cHTMLIFrame $this
73:      */
74:     public function setBorder($border) {
75:         return $this->updateAttribute('frameborder', intval($border));
76:     }
77: 
78: }
79: 
CMS CONTENIDO 4.9.0 API documentation generated by ApiGen 2.8.0