Giter Site home page Giter Site logo

Comments (7)

 avatar commented on May 10, 2024

Which server manager are you trying to implement?

from boxbilling.

bpadmin avatar bpadmin commented on May 10, 2024

ISPCP. (NOT ISPConfig). It does not have an official API yet. What directory do I manage event processing against? Do you have any code examples to look at?

from boxbilling.

 avatar commented on May 10, 2024

This guide will help you develop your own server manager extension.

Server manager extension consists of one php class. Your server manager class has to extend Server_Manger abstract class. To find out what methods must be implemented in your new extension examine Server_Manager class located at bb-library/Server/Manager.php file

Almost all class methods receives Server_Account parameter. Examine bb-library/Server/Account.php file to see what methods are available for the Server_Account object.

This code https://gist.github.com/1801871 will help you understand the concept of server manager class. Read methods comments for detailed description.

from boxbilling.

bpadmin avatar bpadmin commented on May 10, 2024

What directory do i put event listeners in?

from boxbilling.

bpadmin avatar bpadmin commented on May 10, 2024

when using hooks what functions/events can I use? The documentation refers to old events for the previous release. What are the new naming standards for this release?

from boxbilling.

bpadmin avatar bpadmin commented on May 10, 2024

Can you provide a example hook to email admin when a new client signs up, please?

from boxbilling.

 avatar commented on May 10, 2024

These are the new hook events. Just copied from upcoming documentation. Currently without descriptions, but should be self explanatory.

onAfterAdminCloseTicket
onAfterAdminInvoiceDelete
onAfterAdminInvoiceRefund
onAfterAdminInvoiceUpdate
onAfterAdminLogin
onAfterAdminOpenTicket
onAfterAdminPublicTicketClose
onAfterAdminPublicTicketOpen
onAfterAdminPublicTicketReply
onAfterAdminReplyTicket
onAfterAdminSubscriptionCreate
onAfterAdminSubscriptionDelete
onAfterClientCloseTicket
onAfterClientCreateForumTopic
onAfterClientLogin
onAfterClientOpenTicket
onAfterClientPasswordResetConfirm
onAfterClientPasswordResetRequest
onAfterClientProfileUpdate
onAfterClientPublicTicketClose
onAfterClientPublicTicketOpen
onAfterClientPublicTicketReply
onAfterClientReplyTicket
onAfterClientSignUp
onBeforeAdminClientDelete
onBeforeAdminClientPasswordChange
onBeforeAdminClientUpdate
onBeforeAdminDeleteCurrency
onBeforeAdminInvoiceApprove
onBeforeAdminInvoiceDelete
onBeforeAdminInvoiceRefund
onBeforeAdminInvoiceSendReminders
onBeforeAdminInvoiceUpdate
onBeforeAdminOpenTicket
onBeforeAdminPublicTicketOpen
onBeforeAdminSettingsUpdate
onBeforeAdminStaffApiKeyChange
onBeforeAdminStaffCreate
onBeforeAdminStaffDelete
onBeforeAdminStaffPasswordChange
onBeforeAdminStaffProfilePasswordChange
onBeforeAdminStaffProfileUpdate
onBeforeAdminStaffUpdate
onBeforeClientCheckout
onBeforeClientOpenTicket
onBeforeClientProfilePasswordChange
onBeforeClientProfileUpdate
onBeforeClientPublicTicketOpen
onBeforeClientSignUp

Your hook to email admin when client signs up could look like this:

<?php
class Hook_Bpadmin
{
    public static function onAfterClientSignUp(Box_Event $event)
    {
        mail('[email protected]', 'New client signed up', 'I have received new client signup');
    }
}

Place it to bb-library/Hook/Bpadmin.php

from boxbilling.

Related Issues (20)

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.