That is certainly possible. First, you would need to get the cli syntax that you would use to perform that action on the controller. Then take and modify the commands passed though, and change the PHP accordingly.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
That is certainly possible. First, you would need to get the cli syntax that you would use to perform that action on the controller. Then take and modify the commands passed though, and change the PHP accordingly.