main/core/Manager/ToolManager.php
public function setDesktopToolVisible(Tool $tool, User $user, $type = 0)
    {
        $orderedTool = $this->orderedToolRepo->findOneBy(
            ['user' => $user, 'tool' => $tool, 'type' => $type]
        );
        $orderedTool->setVisibleInDesktop(true);
        $this->om->persist($orderedTool);
        $this->om->flush();
    }
public function setDesktopToolVisible(Tool $tool, User $user, $type = 0)
    {
        $orderedTool = $this->orderedToolRepo->findOneBy(
            ['user' => $user, 'tool' => $tool, 'type' => $type]
        );
        $orderedTool->setVisibleInDesktop(true);
        $this->om->persist($orderedTool);
        $this->om->flush();
    }
public function setDesktopToolVisible ( Tool $ tool , User $ user , $ type = 0 ) { $ orderedTool = $ this -> orderedToolRepo -> findOneBy ( [ 'user' => $ user , 'tool' => $ tool , 'type' => $ type ] ) ; $ orderedTool -> setVisibleInDesktop ( true ) ; $ this -> om -> persist ( $ orderedTool ) ; $ this -> om -> flush ( ) ; }
Sets a tool visible for a user in the desktop.

@param Tool $tool
@param User $user
Sets a tool visible for a user in the desktop .