getPlot() public method

public getPlot ( integer $iLimit ) : string
$iLimit integer The limit.
return string The plot of the movie or $sNotFound.
コード例 #1
0
        if ($oIMDB->sNotFound !== $aItem['value']) {
            echo '<p><b>' . $aItem['name'] . '</b>: ' . $aItem['value'] . '</p>';
        }
    }
} else {
    echo '<p>Movie not found!</p>';
}
?>

<hr>

<?php 
$oIMDB = new IMDB('http://www.imdb.com/title/tt1022603/');
if ($oIMDB->isReady) {
    echo '<p><a href="' . $oIMDB->getUrl() . '">' . $oIMDB->getTitle() . '</a> got rated ' . $oIMDB->getRating() . '.</p>';
    echo '<p><img src="' . $oIMDB->getPoster() . '" style="float:left;margin:4px 10px 10px 0;"> <b>About the movie:</b> ' . $oIMDB->getPlot() . '</p>';
} else {
    echo '<p>Movie not found!</p>';
}
?>

<hr>

<?php 
$oIMDB = new IMDB('Fabian Beiner never made a movie. Yet!');
if ($oIMDB->isReady) {
    echo '<p><b>' . $oIMDB->getTitle() . '</b></p>';
} else {
    echo '<p>Movie not found!</p>';
}
?>