/**
  * Currently, "file_mountpoints" is not bound to the BackendUser model, so
  * we need to bind "the old way".
  *
  * @param    BackendUser $backendUser The backend user.
  * @param    FileMount   $fileMount   The file mount which will be bound to the given backend user.
  * @return    boolean|\mysqli_result|object MySQLi result object / DBAL object
  */
 private function fixFileMountForBackendUser(BackendUser $backendUser, FileMount $fileMount)
 {
     return $this->database->exec_UPDATEquery('be_users', 'uid=' . $backendUser->getUid(), ['file_mountpoints' => $fileMount->getUid()]);
 }
示例#2
0
 /**
  * @test
  */
 public function setIsAbsolutePathCanSetBaseIsAbsolutePathToTrue()
 {
     $this->fixture->setIsAbsolutePath(TRUE);
     $this->assertTrue($this->fixture->getIsAbsolutePath());
 }
 /**
  * Currently, "file_mountpoints" is not bound to the BackendUserGroup
  * model, so we need to bind "the old way".
  *
  * @param	BackendUserGroup	$backendUserGroup	The backend user group.
  * @param	FileMount			$fileMount			The file mount which will be bound to the given backend user group.
  * @return	boolean|\mysqli_result|object MySQLi result object / DBAL object
  */
 private function fixFileMountForBackendUserGroup(BackendUserGroup $backendUserGroup, FileMount $fileMount)
 {
     return $this->database->exec_UPDATEquery('be_groups', 'uid=' . $backendUserGroup->getUid(), array('file_mountpoints' => $fileMount->getUid()));
 }
示例#4
0
 /**
  * @test
  */
 public function setIsAbsolutePathCanSetBaseIsAbsolutePathToTrue()
 {
     $this->subject->setIsAbsolutePath(true);
     $this->assertTrue($this->subject->getIsAbsolutePath());
 }