source/Application/Model/Article.php
public function getMediaUrls()
    {
        if ($this->_aMediaUrls === null) {
            $this->_aMediaUrls = oxNew(\OxidEsales\Eshop\Core\Model\ListModel::class);
            $this->_aMediaUrls->init("oxmediaurl");
            $this->_aMediaUrls->getBaseObject()->setLanguage($this->getLanguage());

            $sViewName = getViewName("oxmediaurls", $this->getLanguage());
            $sQ = "select * from {$sViewName} where oxobjectid = '" . $this->getId() . "'";
            $this->_aMediaUrls->selectString($sQ);
        }

        return $this->_aMediaUrls;
    }
public function getMediaUrls()
    {
        if ($this->_aMediaUrls === null) {
            $this->_aMediaUrls = oxNew(\OxidEsales\Eshop\Core\Model\ListModel::class);
            $this->_aMediaUrls->init("oxmediaurl");
            $this->_aMediaUrls->getBaseObject()->setLanguage($this->getLanguage());

            $sViewName = getViewName("oxmediaurls", $this->getLanguage());
            $sQ = "select * from {$sViewName} where oxobjectid = '" . $this->getId() . "'";
            $this->_aMediaUrls->selectString($sQ);
        }

        return $this->_aMediaUrls;
    }
public function getMediaUrls ( ) { if ( $ this -> _aMediaUrls === null ) { $ this -> _aMediaUrls = oxNew ( \ OxidEsales \ Eshop \ Core \ Model \ ListModel :: class ) ; $ this -> _aMediaUrls -> init ( "oxmediaurl" ) ; $ this -> _aMediaUrls -> getBaseObject ( ) -> setLanguage ( $ this -> getLanguage ( ) ) ; $ sViewName = getViewName ( "oxmediaurls" , $ this -> getLanguage ( ) ) ; $ sQ = "select * from {$sViewName} where oxobjectid = '" . $ this -> getId ( ) . "'" ; $ this -> _aMediaUrls -> selectString ( $ sQ ) ; } return $ this -> _aMediaUrls ; }
Return article media URL

@return array
Return article media URL