public function removeNodesWithComponent($components)
    {
        settype($components, 'array');

        if (count($components)) {
            //get all the nodes belonging to the components   
            $ids = $this->getService('repos:base.node')
                        ->getQuery()
                        ->disableChain()
                        ->component($components)
                        ->fetchValues('id');

            if (count($ids)) {
                //delete all the nodes
                $this->getService('repos:base.node')->destroy($ids);

                //clean up any related nodes
                if (!empty($ids)) {
                    $this->cleanupNodesWithIds($ids);
                }
            }
        }
    }
public function removeNodesWithComponent($components)
    {
        settype($components, 'array');

        if (count($components)) {
            //get all the nodes belonging to the components   
            $ids = $this->getService('repos:base.node')
                        ->getQuery()
                        ->disableChain()
                        ->component($components)
                        ->fetchValues('id');

            if (count($ids)) {
                //delete all the nodes
                $this->getService('repos:base.node')->destroy($ids);

                //clean up any related nodes
                if (!empty($ids)) {
                    $this->cleanupNodesWithIds($ids);
                }
            }
        }
    }
public function removeNodesWithComponent ( $ components ) { settype ( $ components , 'array' ) ; if ( count ( $ components ) ) { //get all the nodes belonging to the components    $ ids = $ this -> getService ( 'repos:base.node' ) -> getQuery ( ) -> disableChain ( ) -> component ( $ components ) -> fetchValues ( 'id' ) ; if ( count ( $ ids ) ) { //delete all the nodes $ this -> getService ( 'repos:base.node' ) -> destroy ( $ ids ) ; //clean up any related nodes if ( ! empty ( $ ids ) ) { $ this -> cleanupNodesWithIds ( $ ids ) ; } } } }
Remove node, edges for the passed components.

@param array $components an array of components names in format of com_[name]
Remove node edges for the passed components .