コード例 #1
0
 public function setEditFormInformation()
 {
     parent::setEditFormInformation();
     if (!$this->new_document) {
         // retrieve associated articles, for use in the MW contest checkbox
         $prefered_cultures = $this->getUser()->getCulturesForDocuments();
         $id = $this->getRequestParameter('id');
         $this->associated_articles = Association::findAllAssociatedDocs($id, array('id'), 'oc');
     }
 }
コード例 #2
0
 public function setEditFormInformation()
 {
     parent::setEditFormInformation();
     if (!$this->new_document) {
         $this->title_prefix = $this->getHighestSummitName();
         $this->setPageTitle($this->__('Edition of "%1%"', array('%1%' => $this->title_prefix . $this->__(' :') . ' ' . $this->document->getName())));
         // retrieve associated books for displaying them near bibliography field
         $prefered_cultures = $this->getUser()->getCulturesForDocuments();
         $id = $this->getRequestParameter('id');
         $this->associated_books = Book::getAssociatedBooksData(Association::findAllWithBestName($id, $prefered_cultures, 'br'));
     }
 }
コード例 #3
0
 public function setEditFormInformation()
 {
     parent::setEditFormInformation();
     if (!$this->new_document) {
         // retrieve associated books for displaying them near bibliography field
         $prefered_cultures = $this->getUser()->getCulturesForDocuments();
         $id = $this->getRequestParameter('id');
         $this->associated_books = Book::getAssociatedBooksData(Association::findAllWithBestName($id, $prefered_cultures, 'bt'));
     }
 }