PHP concrete\controller\search\ FileFolder Code Examples

PHP concrete\controller\search\FileFolder - 3 examples found. These are the top rated real world PHP examples of concrete\controller\search\FileFolder extracted from open source projects. You can rate examples to help us improve the quality of examples
Frequently Used Methods
Example #1
0
 protected function getDefaultResetSearchResultObject()
 {
     $search = new FileFolder();
     $search->search();
     $result = $search->getSearchResultObject();
     return $result;
 }
Example #2
0
 public function view()
 {
     $search = new FileFolder();
     $search->search();
     $result = $search->getSearchResultObject();
     if (is_object($result)) {
         $this->set('result', $result);
     }
     $header = new Header();
     $header->setIncludeBreadcrumb(true);
     $this->set('header', $header);
     $this->requireAsset('core/file-manager');
 }
Example #3
0
 public function view()
 {
     $header = new Header();
     $this->set('headerMenu', $header);
     $this->requireAsset('core/file-manager');
     $this->requireAsset('core/imageeditor');
     $provider = $this->app->make('Concrete\\Core\\File\\Search\\SearchProvider');
     $query = $provider->getSessionCurrentQuery();
     if (is_object($query)) {
         $result = $provider->getSearchResultFromQuery($query);
         $result->setBaseURL(\URL::to('/ccm/system/search/files/current'));
     } else {
         $search = new FileFolder();
         $search->search();
         $result = $search->getSearchResultObject();
     }
     if (is_object($result)) {
         $this->set('result', $result);
         $result = json_encode($result->getJSONObject());
         $token = \Core::make('token')->generate();
         $this->addFooterItem("<script type=\"text/javascript\">\$(function() { \$('#ccm-dashboard-content').concreteFileManager({upload_token: '" . $token . "', result: " . $result . "}); });</script>");
     }
 }