Sepia\PoParser::setEntryContext PHP Method

setEntryContext() public method

public setEntryContext ( $msgid, $context = false )
    public function setEntryContext($msgid, $context = false)
    {
        if ($context) {
            $this->entries[$msgid]['msgctxt'][0] = $context;
        } else {
            unset($this->entries[$msgid]['msgctxt']);
        }
    }