Translation::Translation PHP Method

Translation() public method

public Translation ( $p_languageId = null, $p_phraseId = null )
    public function Translation($p_languageId = null, $p_phraseId = null)
    {
        if (is_numeric($p_phraseId)) {
            $this->m_data['phrase_id'] = $p_phraseId;
        }
        if (is_numeric($p_languageId)) {
            $this->m_data['fk_language_id'] = $p_languageId;
        }
        if ($this->keyValuesExist()) {
            $this->fetch();
        }
    }