Giter Site home page Giter Site logo

rc-base's Introduction

rc-base

CI

This extension does nothing, it's only required by some other extensions. It contains shared components, libraries.

New API actions

  • Setting::getSmtpConfig, APIv4
    • Returns current SMTP config nicely formatted. If SMTP password is encrypted, decrypted text is provided.
    • You can select which config to return (or all)
  • Setting::setSmtpConfig, APIv4
    • Allows for more convenient setting of SMTP configs mainly on the CLI (terminal)
    • If encryption is enabled, it will encrypt plain-text passwords
    • Idempotent: checks first and changes config only if it's needed, and report back if no change was done
  • Contact::anonymize, APIv4 (DEPRECATED)
    • Anonymize contact: delete all contact fields and correspondence (email, phone, address etc.)
  • Extension::haspendingupgrade, APIv3
    • Thin wrapper for CRM_Extension_Upgrades::hasPending()
    • Returns 1 if there are pending DB upgrades for extensions, 0 otherwise

Wrappers

  • \Civi\RcBase\ApiWrapper: classes that wrap standard Civi APIv4
  • \Civi\RcBase\Settings: for managing settings and configs, wrapper for Civi::Settings

Services

  • \Civi\RcBase\IOProcessor: IO processors for JSON, URL-encoded, XML or INI files or streams
  • \Civi\RcBase\Logger: file logger, use as Civi::log('rc-base')->info('message')

Traits

  • \Civi\RcBase\Api4\ActionUtilsTrait: methods for APIv4 abstract (non-CRUD) actions
  • \Civi\RcBase\Api4\EntityPagingTrait: methods for APIv4 actions that use paging through MySQL results

Other

  • \Civi\RcBase\Exception: new specific exceptions and handlers
  • \Civi\RcBase\Utils: utility classes and various helper methods
  • CRM_RcBase_Config: wraps Civi::Settings wrapper. For details check the Developer Notes. DEPRECATED
  • CRM_RcBase_Setting: same as above with a few extra methods. DEPRECATED in favor of \Civi\RcBase\Settings!
  • stylesheets: some .css file with general classes.

The extension is licensed under AGPL-3.0.

Requirements

  • PHP v7.4+
  • CiviCRM v5.48+

Installation

Sysadmins and developers may clone the Git repo for this extension and install it with the command-line tool cv.

git clone https://github.com/reflexive-communications/rc-base.git
cv en rc-base

rc-base's People

Contributors

akosgarai avatar semseysandor avatar

Watchers

 avatar  avatar  avatar

rc-base's Issues

Detect content-type with parameters

Current result
As I found out during a debugging session of an integration, if Content-type header contains additional parameters (eg. application/json; charset=UTF-8), detection will fall back to default, and the request will be parsed with the wrong processor.

Expected result
Detection should work corretly even if there are additional parameters not just the media type in the header.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.