title: SugarCRM GetAllRoles() to Retrieve Data for Custom Module/Page
body: <p>I've been working with SugarCRM by creating a custom module and a custom PHP file to that module. I need to display all the Roles available to Users and have the data displayed on the custom PHP page.</p>
  
  <p>I have looked in to getAllRoles() function and...</p>
  
  <pre><code>ACLRole::getAllRoles(boolean $returnAsArray=false);
  </code></pre>
  
  <p>Can any one help me get these functions to work properly?</p>
  
  <p><strong>(Please answer only if you know the answer and do not close the question with false reasons.)</strong></p>