/** * Constructor. * @param IdmlPage $page Could be null * @param IdmlStory $story Could be null if rectangle is not part of story. */ public function __construct(IdmlPage $page = null, IdmlStory $story = null) { parent::__construct(); $this->UID = ''; $this->page = $page; $this->story = $story; $this->visible = true; $this->transformation = new IdmlTransformation(); $this->boundary = IdmlBoundary::createDefault(); }
/** * Constructor. */ public function __construct() { parent::__construct(); $this->UID = ''; $this->parentStoryUID = ''; $this->contentType = ''; $this->visible = true; $this->story = null; $this->transformation = new IdmlTransformation(); $this->boundary = IdmlBoundary::createDefault(); $this->properties = array(); }
/** * Constructor. * * @param IdmlResourceManager $resourceManager Default is null or if you want to inject the object you can pass the param. */ public function __construct(IdmlResourceManager $resourceManager = null) { if (is_null($resourceManager)) { $this->resourceManager = IdmlAssembler::getInstance()->resourceManager; } else { $this->resourceManager = $resourceManager; } $this->boundary = IdmlBoundary::createDefault(); $this->height = null; $this->width = null; $this->ppiX = null; $this->ppiY = null; $this->idmlTag = "img"; }
/** * The constructor * @param IdmlSpread $idmlSpread Can be null. */ public function __construct($idmlSpread = null) { $this->spread = $idmlSpread; $this->UID = ''; $this->appliedMasterUID = 'n'; $this->inDesignPageName = ''; $this->transformation = null; $this->masterPageTransform = null; $this->boundary = IdmlBoundary::createDefault(); $this->idssCoordinates = IdmlBoundary::createDefault(); $this->pagePosition = ''; $this->childrenElements = array(); $this->masterSpreadOverrides = array(); $this->properties = array(); }
/** * Constructor. * @param IdmlPage $page Could be null * @param IdmlStory $story Could be null if rectangle is not part of story. */ public function __construct(IdmlPage $page = null, IdmlStory $story = null) { parent::__construct(); $this->tag = ''; $this->controls = true; $this->loop = false; $this->mediaFilename = ''; $this->autoplay = false; $this->UID = ''; $this->page = $page; $this->story = $story; $this->transformation = new IdmlTransformation(); $this->boundary = IdmlBoundary::createDefault(); $this->visible = true; }