Piwik\Category\Category::getId PHP Method

getId() public method

public getId ( )
    public function getId()
    {
        return $this->id;
    }

Usage Example

コード例 #1
0
ファイル: CategoryList.php プロジェクト: piwik/piwik
 public function addCategory(Category $category)
 {
     $categoryId = $category->getId();
     if ($this->hasCategory($categoryId)) {
         throw new \Exception(sprintf('Category %s already exists', $categoryId));
     }
     $this->categories[$categoryId] = $category;
 }
All Usage Examples Of Piwik\Category\Category::getId