You are here

public function CmisElement::setElement in CMIS API 8.2

Same name and namespace in other branches
  1. 8 src/CmisElement.php \Drupal\cmis\CmisElement::setElement()
  2. 3.0.x src/CmisElement.php \Drupal\cmis\CmisElement::setElement()

Set element.

Parameters

string $type: Controller type.

\Dkd\PhpCmis\DataObjects\AbstractFileableCmisObject $element: Get AbstractFileableCmisObject class.

File

src/CmisElement.php, line 108

Class

CmisElement
Description of CmisElement.

Namespace

Drupal\cmis

Code

public function setElement($type, AbstractFileableCmisObject $element) {
  $this->type = $type;
  $this->element = $element;
  $this
    ->prepare();
}