public function createToolMaskDecoder(
        Tool $tool,
        $action,
        $value,
        $grantedIconClass,
        $deniedIconClass
    ) {
        $maskDecoder = new ToolMaskDecoder();
        $maskDecoder->setTool($tool);
        $maskDecoder->setName($action);
        $maskDecoder->setValue($value);
        $maskDecoder->setGrantedIconClass($grantedIconClass);
        $maskDecoder->setDeniedIconClass($deniedIconClass);
        $this->om->persist($maskDecoder);
        $this->om->flush();
    }
public function createToolMaskDecoder(
        Tool $tool,
        $action,
        $value,
        $grantedIconClass,
        $deniedIconClass
    ) {
        $maskDecoder = new ToolMaskDecoder();
        $maskDecoder->setTool($tool);
        $maskDecoder->setName($action);
        $maskDecoder->setValue($value);
        $maskDecoder->setGrantedIconClass($grantedIconClass);
        $maskDecoder->setDeniedIconClass($deniedIconClass);
        $this->om->persist($maskDecoder);
        $this->om->flush();
    }
public function createToolMaskDecoder ( Tool $ tool , $ action , $ value , $ grantedIconClass , $ deniedIconClass ) { $ maskDecoder = new ToolMaskDecoder ( ) ; $ maskDecoder -> setTool ( $ tool ) ; $ maskDecoder -> setName ( $ action ) ; $ maskDecoder -> setValue ( $ value ) ; $ maskDecoder -> setGrantedIconClass ( $ grantedIconClass ) ; $ maskDecoder -> setDeniedIconClass ( $ deniedIconClass ) ; $ this -> om -> persist ( $ maskDecoder ) ; $ this -> om -> flush ( ) ; }
Create a specific mask decoder for a tool.

@param \Claroline\CoreBundle\Entity\Tool\Tool $tool
Create a specific mask decoder for a tool .