コード例 #1
0
    /**
     * @param ChannelConfiguration $channelConfiguration
     * @return string
     */
    public function getNewImage(ChannelConfiguration $channelConfiguration)
    {
        if($this->attribute("new"))
        {
            return StaticData::externalUrl(ClusterTool::clusterIdentifier(), $this->attribute("new"));
        }

        if(!$channelConfiguration->attribute("new"))
        {
            return null;
        }

        return StaticData::externalUrl(ClusterTool::clusterIdentifier(), $channelConfiguration->attribute("new"));
    }