コード例 #1
0
ファイル: lesson1_11.php プロジェクト: vrach141801/Study
 function getSummaryLine()
 {
     $base = parent::getSummaryLine();
     $base .= " Time:{$this->playLength}";
     return $base;
 }
コード例 #2
0
ファイル: listing.023.php プロジェクト: jabouzi/projet
 function getSummaryLine()
 {
     $base = parent::getSummaryLine();
     $base .= ": page count - {$this->numPages}";
     return $base;
 }
コード例 #3
0
ファイル: CdProduct.php プロジェクト: raynaldmo/php-education
 public function getSummaryLine()
 {
     $base = parent::getSummaryLine();
     $base .= ": playing time - {$this->getPlayLength()}";
     return $base;
 }
コード例 #4
0
ファイル: index.php プロジェクト: Vadichek/site
 function getSummaryLine()
 {
     $base = parent::getSummaryLine();
     $base .= " Время проигрывания {$this->playLength}";
     return $base;
 }
コード例 #5
0
ファイル: inharitance.php プロジェクト: beregsys/Learning
 public function getSummaryLine()
 {
     $base = parent::getSummaryLine();
     $base .= ":  {$this->numPages} стр.";
     return $base;
 }
コード例 #6
0
 public function getSummaryLine()
 {
     $base = parent::getSummaryLine();
     $base .= ": page count - {$this->getNumberOfPages()}";
     return $base;
 }
コード例 #7
0
ファイル: listing.017.php プロジェクト: jabouzi/projet
    {
        return $this->numPages;
    }
    function getPlayLength()
    {
        return $this->playLength;
    }
    function getProducer()
    {
        return "{$this->producerFirstName}" . " {$this->producerMainName}";
    }
    function getSummaryLine()
    {
        $base = "{$this->title} ( {$this->producerMainName}, ";
        $base .= "{$this->producerFirstName} )";
        if ($this->type == 'book') {
            $base .= ": page count - {$this->numPages}";
        } else {
            if ($this->type == 'cd') {
                $base .= ": playing time - {$this->playLength}";
            }
        }
        return $base;
    }
}
$product1 = new ShopProduct("cd1", "bob", "bobbleson", 4, null, 50);
print $product1->getSummaryLine();
print "\n";
$product2 = new ShopProduct("book1", "harry", "harrelson", 4, 30);
print $product2->getSummaryLine();
print "\n";
コード例 #8
0
ファイル: index.php プロジェクト: Overfinch/oop
 function getSummaryLine()
 {
     $base = parent::getSummaryLine();
     $base .= ": " . $this->numPages . " стр.";
     return $base;
 }