Exemple #1
0
 /**
  * Create new block element and automatically fill in its contents using 
  * parsed HTML data
  *
  * @param mixed $root the HTML element corresponding to the element being created
  * 
  * @return BlockBox new BlockBox object (with contents filled)
  *
  * @see GenericContainerBox::create_content()
  */
 function &create(&$root, &$pipeline)
 {
     $box = new BlockBox();
     $box->readCSS($pipeline->get_current_css_state());
     $box->create_content($root, $pipeline);
     return $box;
 }
 /**
  * Create new block element and automatically fill in its contents using 
  * parsed HTML data
  *
  * @param mixed $root the HTML element corresponding to the element being created
  * 
  * @return BlockBox new BlockBox object (with contents filled)
  *
  * @see GenericContainerBox::create_content()
  */
 function &create(&$root, &$pipeline)
 {
     $box = new BlockBox();
     $box->create_content($root, $pipeline);
     return $box;
 }