public function _initStockist()
    {
        $stockistId = $this->getRequest()->getParam('stockist_id');
        $this->coreRegistry->register(RegistryConstants::CURRENT_STOCKIST_ID, $stockistId);

        return $stockistId;
    }
public function _initStockist()
    {
        $stockistId = $this->getRequest()->getParam('stockist_id');
        $this->coreRegistry->register(RegistryConstants::CURRENT_STOCKIST_ID, $stockistId);

        return $stockistId;
    }
public function _initStockist ( ) { $ stockistId = $ this -> getRequest ( ) -> getParam ( 'stockist_id' ) ; $ this -> coreRegistry -> register ( RegistryConstants :: CURRENT_STOCKIST_ID , $ stockistId ) ; return $ stockistId ; }
Initialize current stockist and set it in the registry.

@return int
Initialize current stockist and set it in the registry .