original_string: static function countByContent( $contentObjectID = false, $languageID = false, $status = null )
      {
          $cond = array();
          if ( $contentObjectID !== false )
          {
              $cond['contentobject_id'] = $contentObjectID;
          }
          if ( $languageID !== false )
          {
              $cond['language_id'] = $languageID;
          }
          if ( !is_null( $status ) )
          {
              $cond['status'] = $status;
          }
          return eZPersistentObject::count( self::definition(), $cond );
      }
code: static function countByContent( $contentObjectID = false, $languageID = false, $status = null )
      {
          $cond = array();
          if ( $contentObjectID !== false )
          {
              $cond['contentobject_id'] = $contentObjectID;
          }
          if ( $languageID !== false )
          {
              $cond['language_id'] = $languageID;
          }
          if ( !is_null( $status ) )
          {
              $cond['status'] = $status;
          }
          return eZPersistentObject::count( self::definition(), $cond );
      }
code_tokens: static function countByContent ( $ contentObjectID = false , $ languageID = false , $ status = null ) { $ cond = array ( ) ; if ( $ contentObjectID !== false ) { $ cond [ 'contentobject_id' ] = $ contentObjectID ; } if ( $ languageID !== false ) { $ cond [ 'language_id' ] = $ languageID ; } if ( ! is_null ( $ status ) ) { $ cond [ 'status' ] = $ status ; } return eZPersistentObject :: count ( self :: definition ( ) , $ cond ) ; }
docstring: Count the comments by content object id
  @param integer $contentObjectID
  @param integer $languageID
  @param integer $status
  @return count of comments
docstring_tokens: Count the comments by content object id