original_string: static function fetchNotificationList( $status = 1, $length = null, $offset = 0, $sorts = null )
      {
          $cond = array();
          if ( is_null( $status ) )
          {
              $cond = null;
          }
          else
          {
          $cond['status'] = $status;
          }
          $limit = array();
          if ( is_null( $length ) )
          {
              $limit = null;
          }
          else
          {
              $limit['offset'] = $offset;
              $limit['length'] = $length;
          }
          return eZPersistentObject::fetchObjectList( self::definition(), null, $cond, $sorts, $limit );
      }
code: static function fetchNotificationList( $status = 1, $length = null, $offset = 0, $sorts = null )
      {
          $cond = array();
          if ( is_null( $status ) )
          {
              $cond = null;
          }
          else
          {
          $cond['status'] = $status;
          }
          $limit = array();
          if ( is_null( $length ) )
          {
              $limit = null;
          }
          else
          {
              $limit['offset'] = $offset;
              $limit['length'] = $length;
          }
          return eZPersistentObject::fetchObjectList( self::definition(), null, $cond, $sorts, $limit );
      }
code_tokens: static function fetchNotificationList ( $ status = 1 , $ length = null , $ offset = 0 , $ sorts = null ) { $ cond = array ( ) ; if ( is_null ( $ status ) ) { $ cond = null ; } else { $ cond [ 'status' ] = $ status ; } $ limit = array ( ) ; if ( is_null ( $ length ) ) { $ limit = null ; } else { $ limit [ 'offset' ] = $ offset ; $ limit [ 'length' ] = $ length ; } return eZPersistentObject :: fetchObjectList ( self :: definition ( ) , null , $ cond , $ sorts , $ limit ) ; }
docstring: Fetch the list of notification
  @param $length: count of the notification to be fetched
  @param $status: the status of the notification
  @param $offset: offset
  @return notification list
docstring_tokens: Fetch the list of notification