Ejemplo n.º 1
0
 public static function manager()
 {
     if (!self::$manager) {
         self::$manager = new Projects_Editor_Manager();
     }
     return self::$manager;
 }
Ejemplo n.º 2
0
 protected function createTabs($file)
 {
     parent::createTabs($file);
     $editor = Projects_Editor_Manager::manager()->editor($file->id(), $file->code(), $file->highlight());
     $editor->read_only = $this->read_only();
     $content = $editor->xhtml('content', 'savecontent');
     $summary = $this->tabs->tab('Summary');
     $summary->setContent($content);
 }
Ejemplo n.º 3
0
 public function __construct($parent, $file)
 {
     parent::__construct($parent, 'Log');
     $log = $file->log();
     if (!$log) {
         return;
     }
     $editor = Projects_Editor_Manager::manager()->editor($file->log_file(), $file->log(), '');
     $editor->read_only = TRUE;
     $content = $editor->xhtml('log', 'show');
     $this->root->appendChild($this->loadElement($content));
 }
Ejemplo n.º 4
0
 public function format($file)
 {
     $editor = Projects_Editor_Manager::manager()->editor($file->id(), $file->content(), '');
     $editor->read_only = TRUE;
     return $editor->xhtml('content', 'show');
 }