示例#1
0
 /**
  * Creates the preview for the object with the specified id.
  * 
  * @param ilObject $a_obj The object to create the preview for.
  * @param bool $a_force true, to force the creation of the preview; false, to create the preview only if needed.
  * @return bool true, if the preview was created; otherwise, false.
  */
 public static function createPreview($a_obj, $a_force = false)
 {
     $preview = new ilPreview($a_obj->getId(), $a_obj->getType());
     return $preview->create($a_obj, $a_force);
 }