public function SetContent(Content $content)
    {
        $this->texts = array();
        $wordings = ContentWording::Schema()->FetchByContent(false, $content);
        foreach($wordings as $wording)
        {
            $prefix = Str::Replace('-', '.', $content->GetType());
            $this->texts[$prefix . '.' . $wording->GetPlaceholder()] = $wording->GetText();
        }
    }
public function SetContent(Content $content)
    {
        $this->texts = array();
        $wordings = ContentWording::Schema()->FetchByContent(false, $content);
        foreach($wordings as $wording)
        {
            $prefix = Str::Replace('-', '.', $content->GetType());
            $this->texts[$prefix . '.' . $wording->GetPlaceholder()] = $wording->GetText();
        }
    }
public function SetContent ( Content $ content ) { $ this -> texts = array ( ) ; $ wordings = ContentWording :: Schema ( ) -> FetchByContent ( false , $ content ) ; foreach ( $ wordings as $ wording ) { $ prefix = Str :: Replace ( '-' , '.' , $ content -> GetType ( ) ) ; $ this -> texts [ $ prefix . '.' . $ wording -> GetPlaceholder ( ) ] = $ wording -> GetText ( ) ; } }
Set the current content to retrieve customized wording texts
@param Content $content The content
Set the current content to retrieve customized wording texts