/**
  * Mock a file search using AssetAdmin
  *
  * @param string $name
  * @param string $from Created from date
  * @param string $to Createi to date
  * @param string $category
  * @return SS_List
  */
 protected function getResultsForSearch($name = '', $from = '', $to = '', $category = '')
 {
     $request = new SS_HTTPRequest(null, 'admin/assets/show', array('q' => array('Name' => $name, 'CreatedFrom' => $from, 'CreatedTo' => $to, 'AppCategory' => $category), 'action_doSearch' => 'Apply Filter'));
     $admin = new AssetAdmin();
     $admin->setRequest($request);
     return $admin->getList();
 }
 /**
  * 
  * @return SS_List
  */
 public function getList()
 {
     $list = parent::getList();
     $list = $list->filter("Secured", 1);
     $securedRoot = FileSecured::getSecuredRoot();
     $list = $list->exclude("ID", $securedRoot->ID);
     return $list;
 }
 /**
  * 
  * @return SS_List
  */
 public function getList()
 {
     $list = parent::getList();
     $list = $list->exclude("Secured", "1");
     return $list;
 }