applications/dashboard/controllers/class.logcontroller.php
public function Count($Operation) {
      $this->Permission('Garden.Moderation.Manage');

      if ($Operation == 'edits')
         $Operation = array('edit', 'delete');
      else
         $Operation = explode(',', $Operation);
      array_map('ucfirst', $Operation);

      $Count = $this->LogModel->GetCountWhere(array('Operation' => $Operation));

      if ($Count > 0)
         echo '<span class="Alert">', $Count, '</span>';
   }
public function Count($Operation) {
      $this->Permission('Garden.Moderation.Manage');

      if ($Operation == 'edits')
         $Operation = array('edit', 'delete');
      else
         $Operation = explode(',', $Operation);
      array_map('ucfirst', $Operation);

      $Count = $this->LogModel->GetCountWhere(array('Operation' => $Operation));

      if ($Count > 0)
         echo '<span class="Alert">', $Count, '</span>';
   }
public function Count ( $ Operation ) { $ this -> Permission ( 'Garden.Moderation.Manage' ) ; if ( $ Operation == 'edits' ) $ Operation = array ( 'edit' , 'delete' ) ; else $ Operation = explode ( ',' , $ Operation ) ; array_map ( 'ucfirst' , $ Operation ) ; $ Count = $ this -> LogModel -> GetCountWhere ( array ( 'Operation' => $ Operation ) ) ; if ( $ Count > 0 ) echo '<span class="Alert">' , $ Count , '</span>' ; }
Count log items.

@since 2.0.?
@access public

@param string $Operation Comma-separated ist of action types to find.
Count log items .