Esempio n. 1
0
        /**
         * Get all supported actions
         * @return int bitwise-or'ed actions
         *
         * Returns the supported actions as int to be
         * compared with self::CREATE_USER etc.
         */
        public int getSupportedActions()
        {
            var actions = 0;

            foreach (var action in this.possibleActions)
            {
                if (ClassUtility.HasMethod(this, action.Value))
                {
                    actions |= action.Key;
                }
            }

            return(actions);
        }