code: protected function createContentElement(Result $objElement, $strPtable, $strField)
  	{
  		$set = array
  		(
  			'pid'         => $objElement->id,
  			'ptable'      => $strPtable,
  			'sorting'     => 128,
  			'tstamp'      => $objElement->tstamp,
  			'type'        => 'text',
  			'text'        => $objElement->$strField,
  			'addImage'    => $objElement->addImage,
  			'singleSRC'   => $objElement->singleSRC,
  			'alt'         => $objElement->alt,
  			'size'        => $objElement->size,
  			'imagemargin' => $objElement->imagemargin,
  			'imageUrl'    => $objElement->imageUrl,
  			'fullsize'    => $objElement->fullsize,
  			'caption'     => $objElement->caption,
  			'floating'    => $objElement->floating
  		);
  
  		$this->Database->prepare("INSERT INTO tl_content %s")->set($set)->execute();
  	}
docs: Create a content element
  
  @param Result $objElement A database result object
  @param string $strPtable  The name of the parent table
  @param string $strField   The name of the text column