Redbeanphp Class Reference Cheat Sheet by Richard Holloway (Richardjh) Via Cheatography.Com/478/Cs/347

Total Page:16

File Type:pdf, Size:1020Kb

Redbeanphp Class Reference Cheat Sheet by Richard Holloway (Richardjh) Via Cheatography.Com/478/Cs/347 RedBeanPHP Class Reference Cheat Sheet by Richard Holloway (richardjh) via cheatography.com/478/cs/347/ About RedBeanPHP ORM Class Reference pt2 Class Reference pt3 Easy ORM for PHP and MySQL, PostgreSQL and findAndExport( $type, $sql=null, $value=array() ) isoDate( $time=null ) many other database systems. Finds a bean using a type and a where clause Simple convenience function, returns ISO date Use the simplicity of NoSQL with the power of SQL. (SQL). As with most Query tools in RedBean you formatted representation of $time can provide values to be inserted in the SQL isoDateTime( $time=null ) http://redbeanphp.com/ statement by populating the value array parameter; Simple convenience function, returns ISO date time you can either use the question mark notation or formatted representation of $time. Class Reference pt1 the slot-notation (:keyname). The variation also load( $type, $id ) exports the beans (i.e. it returns arrays). addDatabase ( $key, $dsn, $user=null, $pass=null, Loads the bean with the given type and id and findLast( $type, $sql=null, $values=array() ) $frozen=false ) returns it. Finds a bean using a type and a where clause Adds a database to the facade, afterwards you can log( $filename ) (SQL). As with most Query tools in RedBean you select the database using selectDatabase($key). Activates TimeLine Schema Alteration monitoring can provide values to be inserted in the SQL addTags ( $bean, $tagList ) and Query logging. statement by populating the value array parameter; Part of RedBeanPHP Tagging API. Adds tags to a you can either use the question mark notation or nuke() bean. If $tagList is a comma separated list of tags the slot-notation (:keyname). This variation returns Nukes the entire database all tags will be associated with the bean. You may the last bean only. query( $method, $sql, $values ) also pass an array instead of a string. findOne( $type, $sql=null, $values=array() ) Internal Query function, executes the desired query. areRelated( $bean1, $bean2 ) Finds a bean using a type and a where clause Used by all facade query functions. This keeps Checks whether a pair of beans is related N-M. This (SQL). As with most Query tools in RedBean you things DRY. function does not check whether the beans are can provide values to be inserted in the SQL related( $bean, $type, $sql=null, $values=array() ) related in N:1 way. statement by populating the value array parameter; Returns all the beans associated with $bean. This associate( $bean1, $bean2, $extra=null ) you can either use the question mark notation or method will return an array containing all the beans Associates two Beans. This method will associate the slot-notation (:keyname). This variation returns that have been associated once with the associ two beans with eachother. You can then get one of the first bean only. ate() function and are still associated with the bean the beans by using the related() function and findOrDispense( $type, $sql, $values ) specified. providing the other bean. Convenience method. Tries to find beans of a relatedOne( $bean, $type, $sql=null, $values=array() ) batch( $type, $ids ) certain type, if no beans are found, it dispenses a Returns only single associated bean. Returns an array of beans. Pass a type and a series bean of that type. rollback() of ids and this method will bring you the corres freeze( $tr=true ) Facade Convience method for adapter transaction pondig beans. Toggles fluid or frozen mode. In fluid mode the system. Rolls back a transaction. begin() database structure is adjusted to accomodate your selectDatabase( $key ) Facade Convience method for adapter transaction objects. In frozen mode this is not the case. Selects a different database for the Facade to work system. Begins a transaction. gatherLabels( $beans ) with. clearRelations( $bean, $type ) Gathers labels from beans. This function loops setup( $dsn=null, $username=null, $password=null ) Clears all associated beans. Breaks all many-to- through the beans, collects the values of the name Kickstarts redbean for you. This method should be many associations of a bean and a specified type. properties of each individual bean and stores the called before you start using RedBean. The Setup() names in a new array. The array then gets sorted close() method can be called without any arguments, in using the default sort function of PHP (sort). Closes the database connection. this case it will try to create a SQLite database in commit() genSlots( $array ) /tmp called red.db (this only works on UNIX-like Facade Convience method for adapter transaction Generates question mark slots for an array of systems). values. system. Commits a transaction. store( $bean ) configureFacadeWithToolbox( $tb ) getAll( $sql, $values=array() ) Stores a RedBean OODB Bean and returns the ID. Convenience function to execute Queries directly. Configures the facade, want to have a new Writer? storeAll( $beans ) Executes SQL. A new Object Database or a new Adapter and you Short hand function to store a set of beans at once, want it on-the-fly? Use this method to hot-swap getAssoc( $sql, $values=array() ) IDs will be returned as an array. For information your facade with a new toolbox. Convenience function to execute Queries directly. please consult the R::store() function. A loop saver. Executes SQL. Results will be returned as an convertToBeans( $type, $rows ) swap( $beans, $property ) associative array. The first column in the select Converts a series of rows to beans. Given an array of two beans and a property, this clause will be used for the keys in this array and the count( $beanType ) method swaps the value of the property. This is second column will be used for the values. If only Counts beans handy if you need to swap the priority or orderNo of one column is selected in the query, both key and an item (i.e. bug-tracking, page order). debug( $tr=true ) value of the array will have the value of this field for Toggles DEBUG mode. In Debug mode all SQL that each row. tag( $bean, $tagList=null ) happens under the hood will be printed to the Part of RedBeanPHP Tagging API. Tags a bean or getCell( $sql, $values=array() ) screen. returns tags associated with a bean. If $tagList is Convenience function to execute Queries directly. null or omitted this method will return a comma dependencies( $dep ) Executes SQL. separated list of tags associated with the bean Sets a list of dependencies. A dependency list getCol( $sql, $values=array() ) provided. If $tagList is a comma separated list contains an entry for each dependent bean. A Convenience function to execute Queries directly. (string) of tags all tags will be associated with the dependent bean will be removed if the relation with Executes SQL. bean. You may also pass an array instead of a one of the dependencies gets broken. getColumns( $table ) string. dispense( $type, $num ) Returns a list of columns. Format of this array: tagged( $beanType, $tagList ) Dispenses a new RedBean OODB Bean for use array( fieldname => type ) Note that this method Part of RedBeanPHP Tagging API. Returns all array( fieldname => type ) Note that this method Part of RedBeanPHP Tagging API. Returns all with the rest of the methods. only works in fluid mode because it might be quite beans that have been tagged with one of the tags dispenseLabels( $type, $labels ) heavy on production servers! given. A label is a bean with only an id, type and name getRow( $sql, $values=array() ) trash( $bean ) property. This function will dispense beans for all Convenience function to execute Queries directly. Deletes the specified bean. entries in the array. The values of the array will be Executes SQL. assigned to the name property of each individual trashAll( $beans ) bean. getVersion() Short hand function to trash a set of beans at once. Get version For information please consult the R::trash() dup( $bean, $trail, $pid=false ) function. A loop saver. Makes a copy of a bean. This method makes a graph( $array, $filterEmpty=false ) deep copy of the bean. facade method for Cooker Graph. unassociate( $bean1, $bean2, fast=false ) Breaks the association between two beans. This exec( $sql, $values=array() ) hasTags( $bean, $tags, $all=false ) functions breaks the association between a pair of Convenience function to execute Queries directly. Part of RedBeanPHP Tagging API. Tests whether a beans. After calling this functions the beans will no Executes SQL. bean has been associated with one ore more of the listed tags. If the third parameter is TRUE this longer be associated with eachother. Calling exportAll( $beans ) method will return TRUE only if all tags that have related() with either one of the beans will no longer Exports a collection of beans. Handy for XML/JSON been specified are indeed associated with the return the other bean. exports with a Javascript framework like Dojo or given bean, otherwise FALSE. If the third parameter unrelated( $bean, $type, $sql=null, $values=array() ) ExtJS. is FALSE this method will return TRUE if one of the The opposite of related(). Returns all the beans that find( $type, $sql=null, $values=array() ) tags matches, FALSE if none match. are not associated with the bean provided. Finds a bean using a type and a where clause untag( $bean, $tagList ) (SQL). As with most Query tools in RedBean you Part of RedBeanPHP Tagging API. Removes all can provide values to be inserted in the SQL sepcified tags from the bean. The tags specified in statement by populating the value array parameter; the second parameter will no longer be associated you can either use the question mark notation or with the bean. the slot-notation (:keyname). wipe( $beanType ) findAll( $type, $sql=null, $values=array() ) Wipes all beans of type $beanType. Finds a bean using a type and a where clause (SQL).
Recommended publications
  • Php: Variabile
    Service Oriented Architectures / busaco ~ / programare Web ____ _ _ ____ profs.info.uaic.ro ( _ \( )_( )( _ \ )___/ ) _ ( )___/ (__) (_) (_)(__) Dr. Sabin Sabin Buraga Dr. dezvoltarea aplicațiilor Web în PHP / busaco ~ „E mediocru ucenicul / care nu-și depășește maestrul.” profs.info.uaic.ro Leonardo da Vinci Dr. Sabin Sabin Buraga Dr. Personal Home Page Tools (1995) Rasmus Lerdorf / PHP 3 (1998) busaco ~ dezvoltat de Zend – Zeev Suraski & Andi Gutmans / PHP 4 (2000) suport pentru programare obiectuală profs.info.uaic.ro PHP 5 (2004) – varianta cea mai recentă: PHP 5.6 (2014) noi facilități inspirate de Java PHP 6 (actualmente abandonat) Dr. Sabin Sabin Buraga Dr. phpngPHP 7 (2015), PHP 7.1 (la final de 2016) strong typing, suport pentru Unicode, performanță,… php: caracterizare / busaco ~ Server de aplicații Web / oferă un limbaj de programare profs.info.uaic.ro de tip script, interpretat poate fi inclus direct și în cadrul documentelor HTML Dr. Sabin Sabin Buraga Dr. php: caracterizare / busaco ~ Limbajul PHP este procedural, oferind suport și / pentru alte paradigme de programare (obiectuală și, mai recent, funcțională) profs.info.uaic.ro Dr. Sabin Sabin Buraga Dr. php: caracterizare / busaco ~ Limbajul PHP este procedural, oferind suport și / pentru alte paradigme de programare (obiectuală și, mai recent, funcțională) profs.info.uaic.ro poate fi folosit și ca limbaj de uz general Dr. Sabin Sabin Buraga Dr. php: caracterizare / busaco ~ Sintaxă inspirată de C, Perl și Java – case sensitive / uzual, programele PHP au extensia .php profs.info.uaic.ro Dr. Sabin Sabin Buraga Dr. php: caracterizare / busaco ~ / Disponibil gratuit – open source – pentru diverse platforme (Linux, Windows, macOS, UNIX) profs.info.uaic.ro și servere Web: Apache, IIS, nginx,… www.php.net Sabin Buraga Dr.
    [Show full text]
  • Gabor De Mooij Freelance Software Developer (PHP, Javascript, Python and C)
    Contact [email protected] Gabor de Mooij Freelance Software Developer (PHP, JavaScript, Python and C). www.linkedin.com/in/gabor-de- The Hague Area, Netherlands mooij-8164593 (LinkedIn) www.redbeanphp.com (Personal) Summary Top Skills Freelance software developer focusing on PHP, Python, JavaScript PHP and C. JavaScript Git Experience Languages Dutch (Native or Bilingual) Gabor Software English (Full Professional) C Developer and Owner September 2016 - Present The Hague Certifications I am currently working as a freelance (web)application developer under the Zend Certified Engineer PHP 5.3 name Gabor Software. My main focus is to help organizations to refactor their Zend Certified Engineer PHP 4 applications to make them less complex and easier to maintain. I also build MySQL Core Certified Engineer new software with simplicity in mind. As part of my own company I create my ECE JAVA Engineer own programming language: The Citrine Programming Language (written in Publications C). Escape from systemd Royal Schiphol Group Python Lead Developer (freelance) June 2017 - October 2018 (1 year 5 months) Amsterdam Area, Netherlands Lead Developer Wayfinding APIs. Created a Python-based API for indoor navigation. The API can be consumed by websites and applications to guide passengers from home to gate (including all possible challenges in between like checking in luggage, finding an applicable security filter and, of course, finding the right gate). LeasePlan Java Developer (freelance) January 2017 - April 2017 (4 months) Almere Stad Area, Netherlands Interim developer. Helped to finish the Private Lease Platform before deadline. While I started as an AngularJS frontend engineer, they quickly discovered I also have experience with Java/Spring so I did a little of both.
    [Show full text]
  • Laravel. Tworzenie Aplikacji. Receptury
    Tytuł oryginału: Laravel Application Development Cookbook Tłumaczenie: Mirosław Gołda ISBN: 978-83-283-0302-7 Copyright © Packt Publishing 2013. First published in the English language under the title: „Laravel Application Development Cookbook”. Polish edition copyright © 2015 by Helion S.A. All rights reserved. All rights reserved. No part of this book may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording or by any information storage retrieval system, without permission from the Publisher. Wszelkie prawa zastrzeżone. Nieautoryzowane rozpowszechnianie całości lub fragmentu niniejszej publikacji w jakiejkolwiek postaci jest zabronione. Wykonywanie kopii metodą kserograficzną, fotograficzną, a także kopiowanie książki na nośniku filmowym, magnetycznym lub innym powoduje naruszenie praw autorskich niniejszej publikacji. Wszystkie znaki występujące w tekście są zastrzeżonymi znakami firmowymi bądź towarowymi ich właścicieli. Autor oraz Wydawnictwo HELION dołożyli wszelkich starań, by zawarte w tej książce informacje były kompletne i rzetelne. Nie biorą jednak żadnej odpowiedzialności ani za ich wykorzystanie, ani za związane z tym ewentualne naruszenie praw patentowych lub autorskich. Autor oraz Wydawnictwo HELION nie ponoszą również żadnej odpowiedzialności za ewentualne szkody wynikłe z wykorzystania informacji zawartych w książce. Wydawnictwo HELION ul. Kościuszki 1c, 44-100 GLIWICE tel. 32 231 22 19, 32 230 98 63 e-mail: [email protected] WWW: http://helion.pl (księgarnia internetowa, katalog książek) Drogi Czytelniku! Jeżeli chcesz ocenić tę książkę, zajrzyj pod adres http://helion.pl/user/opinie/larare Możesz tam wpisać swoje uwagi, spostrzeżenia, recenzję. Printed in Poland. • Kup książkę • Księgarnia internetowa • Poleć książkę • Lubię to! » Nasza społeczność • Oceń książkę Spis treĂci O autorze 7 O recenzentach 8 WstÚp 9 Rozdziaï 1.
    [Show full text]
  • Cross Tier Framework for Rapid Web Application Development
    Avinash D’Silva et al, / (IJCSIT) International Journal of Computer Science and Information Technologies, Vol. 6 (2) , 2015, 1371-1374 Cross Tier Framework for Rapid Web Application Development Avinash D’Silva1, Majesly Correia2, Pruthvish Vyas3 Department of Computer Engineering Xavier Institute of Engineering, Mumbai, India Abstract— A web framework enables the developers to easily data are to be displayed, nor the GUI actions that are used integrate complex components into their web application, to manipulate the data. which otherwise would have been a task of writing the code The view object refers to the model. It uses the query from scratch. X-Frame creates web applications on fly using a methods of the model to obtain data from the model and code generator that eliminates redundant client side then displays the information. A view renders the contents scripts/code. The MVC structure used in our framework enables proper structuring of the developer’s web application. of a model. It is the view’s responsibility to maintain This paper describes how our framework can be used to build consistency in its presentation when the model changes. X- a well structured web application using various in-built Frame uses MVC2 architecture. functionalities. Keywords— MVC architecture, ORM, AJAX, Code Generator, Hot Code Push. INTRODUCTION Web applications like online shopping websites, web portals, and chat websites form a significant part of modern day life. A developer has to write a lot of code for creating a modern web application this result in redundancy in the code base, but this redundancy cannot be eliminated because each function in the code base is slightly different from the other.
    [Show full text]
  • Redbeanphp Class Reference Cheat Sheet by Richardjh
    RedBeanPHP Class Reference Cheat Sheet by Richard Holloway (richardjh) via cheatography.com/478/cs/347/ About RedBeanPHP ORM Class Reference pt1 (cont) Class Reference pt1 (cont) Easy ORM for PHP and MySQL, PostgreSQL close() exportAll( $beans ) and many other database systems. Closes the database connect​ ion. Exports a collection of beans. Handy for Use the simplicity of NoSQL with the power of XML/JSON exports with a Javascript SQL. commit() framework like Dojo or ExtJS. http://​ red​ bea​ nph​ p.com/ Facade Convience method for adapter ​ ​ transac​ tion system. Commits a transac​ tion. find( $type, $sql=null, $values=array() ) Class Reference pt1 Finds a bean using a type and a where configu​ reF​ aca​ deW​ ith​ Too​ lbox( $tb ) clause (SQL). As with most Query tools in addData​ base ( $key, $dsn, $user=n​ ull, Configures the facade, want to have a new RedBean you can provide values to be $pass=n​ ull, $frozen​ =false ) Writer? A new Object Database or a new inserted in the SQL statement by populating Adds a database to the facade, afterwards Adapter and you want it on-the-​ fly? Use this the value array parameter; you can either you can select the database using method to hot-swap your facade with a new use the question mark notation or the slot- selectD​ ata​ bas​ e($​ key). toolbox. no​ tation (:keyna​ me). addTags ( $bean, $tagList ) convert​ ToB​ eans( $type, $rows ) findAll( $type, $sql=null, $values​ =ar​ ray() ) Part of RedBeanPHP Tagging API. Adds Converts a series of rows to beans. Finds a bean using a type and a where tags to a bean.
    [Show full text]
  • Zašto Smo Odabrali Laravel (4)?
    Zašto smo odabrali Laravel (4)? Denis Stančer Prije framework-a • Razvijate web aplikacije od ranih početaka (kraj XX stoljeća) • Perl – CGI • PHP (3.0 - 6/1998, 4.0 - 5/2000, 5.0 - 7/2004, 5.3 - 6/2009 ) • Tijekom vremena sami razvijete elemente frameworka • Prednosti: • Brži razvoj • Neka vrsta standarda • Nedostaci: • Još uvijek velika količina spaghetti kôda • Pojedini developer ima svoj framework • Ne razvijaju se svi jednako brzo • Nama pravovremenih sigurnosnih zakrpi U Srcu • Koji PHP framework koristite ili ste koristili? Zašto framework? • Brži razvoj • Standardizirana organizacija kôda • Pojednostavljeno • Pristupu bazi/bazama • Zaštita od osnovnih sigurnosnih propusta • Modularnost • Razmjena gotovih rješenja među developerima • Copy/paste ili Composer • U MVC framework-u razdvojen HTML/JS od PHP-a • U konačnici - bolja suradnja unutar tima = efikasniji razvoj i održavanje MVC – Model-View-Controller • Programski predložak kojim se komunikacija s korisnikom dijeli na tri dijela: • data model: podaci • najčešće baza • user interface: prikaz stanja u modelu • najčešće templating engine • bussines model: šalje naredbe modelu Koji framework odabrati? • Koji su najpopularniji? • Koji imaju mogućnosti koje nama trebaju? • Popis općih kriterija • Composer • ORM • Testna okruženja • Migracije i seeding • Templating engine • Bootstrap • Git • Kvaliteta dokumentacije • Stanje zajednice: forumi, članci, konferencije,… Koji framework odabrati? (2) • Popis specifičnih kriterija • Mali (rijetko srednje veliki) projekti • simpleSAMLphp: jednostavno
    [Show full text]
  • Object Relational Mapping in PHP5
    ! § ! Bachelor thesis Object Relational Mapping in PHP5 ! Author: Michelle Sanver Supervisor: Martin Blomberg Semester: Spring 2011 Course code: 2DV40E Acknowledgements Many thanks to Matthew Weier O'Phinney and Ryan Mauger for taking the time to participate in interviews and sharing information very valuable to this thesis. I would also like to thank my classmates Martin Lindberg, Tobias Åström, Fredrik Johansson and Dennis Sangmo at Linnaeus University who have given their constant support. Abstract Using an object relational mapper, ORM, is a good idea if you have an object relational code base and are following standards. By using an ORM you get a separation between actual objects and data persistence. This also makes it possible for the programmer to fully focus on the application without knowing much about how the database itself works. However, this doesn’t come without drawbacks. Depending what ORM you use and how you use it, it may sacrifice performance. The research in this thesis shows that using an ORM in a very small application does not sacrifice performance. Sammanfattning Det är en bra idé att använda en “Object relational mapper, ORM” om du har en objektorienterad kodbas och följer standarder och objektorienterade regler. Genom att använda en ORM separerar du objekten och hur de förvaras för att enkelt kunna refaktorera i ett senare stadie. Det medför också att programmeraren kan fokusera på sitt uppdrag, applikationen och behöver inte veta något om databaser. Men, detta kommer inte utan nackdelar. Beroende på vilket ORM system du använder och hur du använder det kan det påverka prestandan. Forskningen i den här rapporten pekar på att när man använder en ORM i en väldigt liten applikation berörs inte prestandan.
    [Show full text]
  • Rene López Flores Doctorado En Ingeniería Industrial
    Rene López Flores Doctorado en Ingeniería Industrial Datos personales CVU 299134 Fecha y lugar de 11 de Abril de 1984, Omealca Veracruz nacimiento Dirección Mérida, Yucatán Estado civil Casado Contacto Celular: 272 18 18 453, e-mail: [email protected] Adscripción actual Nombramiento Profesor Investigador Titular "A", Tiempo Completo Ingreso Agosto-2016 Dependencia Facultad de Ingeniería Química Institución Universidad Autónoma de Yucatán (UADY) Dirección Periférico Norte Kilometro 33.5, Perif. de Mérida Lic. Manuel Berzunza 13615, Chuburna de Hidalgo Inn, 97203 Mérida, Yucatán Contacto Teléfono oficina: +52 (999) 9460956 Ext. 1197, e-mail: [email protected] Formación académica 2015 Doctorado en Ingeniería Industrial, Institut National Polytechnique de Toulouse, Toulouse, Francia. Cedula profesional: 11412339 2011 Maestría en Sistemas Computacionales, Instituto Tecnológico de Orizaba, Orizaba, México. Cedula profesional: 7349731 2006 Ingeniería en Sistemas Computacionales, Instituto Tecnológico de Orizaba, Orizaba, México. Cedula profesional: 5316090 Actividades de Investigación Líneas de investigación Orientadas en el campo de la administración estratégica de la innovación tecnológica, la innovación asistida por computadora, ingeniería de procesos, la inteligencia colectiva y análisis de datos. Experiencia investigación Página 1 de 8 2018 Ayuntamiento Mérida-FIQ. Responsable del proyecto "Programa para el control de emisiones contaminantes de fuentes móviles. Caso de estudio: parque vehicular del Ayuntamiento de Mérida 2015-2018, Yucatán". Vigencia 05/2018-08/2018. Financiamiento Ayuntamiento Mérida 2017-2019 PRODEP. Responsable del proyecto "Sistema experto para el diagnóstico de aspectos de sustentabilidad en PyMES de la región de Yucatán". Vigencia 07/2017- 03/2019. Financiamiento PRODEP 2017 Ayuntamiento Mérida-FIQ. Planeación de proyecto "Unidad de verificación y análisis de gases contaminantes provenientes de vehículos automotores(gasolina y diésel)".
    [Show full text]
  • The PHP Security Checklist INTRODUCTION
    The PHP Security Checklist INTRODUCTION Damn, but security is hard. It’s not always obvious what needs doing, and the payofs of good security are at best obscure. Who is surprised when it falls of our priority lists? We’d like to ofer a little help if you don’t mind. And by « help » we don’t mean « pitch you our product »—we genuinely mean it. Sqreen’s mission is to empower engineers to build secure web applications. We’ve put our security knowledge to work in compiling an actionable list of best practices to help you get a grip on your DevSecOps priorities. It’s all on the following pages. We hope your find if useful. If you do, share it with your network. And if you don’t, please take to Twitter to complain loudly—it’s the best way to get our attention. The Screen Team @SqreenIO [email protected] !1 CODE ✔ Use PHP 7! PHP 7 includes a range of built-in security-specific improvements (such as libsodium in PHP 7.2) and deprecates older, insecure features and functionality. As a result, it is far easier to create more secure applications with PHP 7, than any previous version of PHP. Use it whenever possible. Read more: • Deprecated features in PHP 7.0.x • Deprecated features in PHP 7.1.x • Deprecated features in PHP 7.2.x • Migrating a PHP 5 App to PHP 7 ✔ Use a SAST A SAST is a Static Application Security Tester (or testing service). A SAST scans source code looking for vulnerable code or potentially vulnerable code.
    [Show full text]
  • Vergleich Verschiedener PHP-Basierter ORM-Frameworks Mit Fokus Auf Ihrem Anwendungspotenzial Für Content-Management-Systeme
    Vergleich verschiedener PHP-basierter ORM-Frameworks mit Fokus auf ihrem Anwendungspotenzial für Content-Management-Systeme von Ingmar Szmais 3113419 Databay AG 1. Prüfer: Prof. Dr. rer. nat. Volker Sander 2. Prüfer: Thomas Joussen Reichshof, 26. Dezember 2018 1 Eidesstattliche Erklärung Hiermit versichere ich, dass ich die Seminararbeit mit dem Thema “Vergleich verschiedener PHP-basierter ORM-Frameworks mit Fokus auf ihrem Anwendungspotenzial für Content-Management-Systeme” selbstständig verfasst und keine anderen als die angegebenen Quellen und Hilfsmittel benutzt habe, alle Ausführungen, die anderen Schriften wörtlich oder sinngemäß entnommen wurden, kenntlich gemacht sind und die Arbeit in gleicher oder ähnlicher Fassung noch nicht Bestandteil einer Studien- oder Prüfungsleistung war. Ich verpflichte mich, ein Exemplar der Seminararbeit fünf Jahre aufzubewahren und auf Verlangen dem Prüfungsamt des Fachbereiches Medizintechnik und Technomathematik auszuhändigen. Name: Ingmar Szmais Reichshof, den 26.12.2018 Unterschrift des Studenten 1. Prüfer: Prof. Dr. rer. nat. Volker Sander 2. Prüfer: Thomas Joussen Reichshof, 26. Dezember 2018 2 Inhaltsverzeichnis ● 1. Einleitung 4 ● 2. Umgebung 5 ● 3. Voraussetzung und Einrichtung 6 ○ RedbeanPHP 6 ○ Doctrine 7 ○ Maghead 9 ● 4. Erweiterte Nutzung und Performance 11 ○ RedbeanPHP 11 ○ Doctrine 14 ○ Maghead 19 ● 5. Fazit 23 ● 6. Quellen 27 ● 7. Anhang 28 3 1. Einleitung Durch den Fortschritt der globalen Vernetzung und deren Integration in die Gesellschaft werden immer mehr analoge Datenverwaltungssysteme durch digitale Content-Management-Systeme (CMS) ersetzt. Besonders in der Web-basierten CMS Entwicklung sorgt die dadurch steigende Datenmenge und Datenverknüpfung in Korrelation mit der steigenden Komplexität der Anwendungen für Probleme, die sich meist durch eine verbesserte Datenstruktur und Reduzierung trivialer Datenbankabfragen beheben lassen. Besonders die Migration der meist prozeduralen, analogen Daten hin zu objektorientierten digitalen Daten stellt bei der Datenverwaltung eine der größten Schwierigkeiten dar.
    [Show full text]
  • Database, Tables and Columns
    http://redbeanphp.com/manual.php Introduction Welcome RedBeanPHP is an easy-to-use, on-the-fly ORM for PHP. It's 'zero config', relying on strict conventions instead. Let's look at the code, this is how you do CRUD in RedBeanPHP: require 'rb.php'; R::setup(); $post = R::dispense('post'); $post->text = 'Hello World'; $id = R::store($post); //Create or Update $post = R::load('post',$id); //Retrieve R::trash($post); //Delete This automatically generates the database, tables and columns... on-the-fly. It infers relations based on naming conventions. Download RedBeanPHP Now. RedBeanPHP is written by BDFL Gabor de Mooij and the RedBeanPHP community. News 2014-06-29: RedBeanPHP 4.0.5 improved UUID/GUID support. 2014-06-01: Restructuring documentation 2014-05-27: RedBeanPHP 4.0.4 has been released (see below). 2014-05-21: Backport via-cache fix to 3.5.9 2014-05-18: RedBeanPHP 4.0.3 fixed issue with Via Cache. 2014-05-12: RedBeanPHP 4.0.2 fixed issue with nullifying parent bean. 2014-04-23: RedBeanPHP 4.0.1 link() now also accept camelcase type (converts to snake_case). 2014-04-06: RedBeanPHP 3.5 update 8 has been released, this is a maintenance update. 2014-04-01: We are proud to announce the official release of RedBeanPHP 4.0, right on time! (as always). Zero Config No need to configure anything. No annotations or lengthy XML files. Just follow the conventions and everything works. Installation is also easy, just one file! No autoloaders, package management or include paths. RedBeanPHP also automatically configures your database 1 of 64 13-07-14 15:15 http://redbeanphp.com/manual.php connection to use UTF-8 encoding.
    [Show full text]
  • Atviro Kodo (Atvirosios) Programinės Įrangos Vartojimo Situacijos Ir Patikimo Aptarnavimo Infrastruktūros Sukūrimo Galimybių Lietuvoje Tyrimo Ataskaita
    VILNIAUS UNIVERSITETAS Atviro kodo (atvirosios) programin ės įrangos vartojimo situacijos ir patikimo aptarnavimo infrastrukt ūros suk ūrimo galimybi ų Lietuvoje tyrimo A T A S K A I T A VILNIUS, 2018 Tyrim ą atliko ir ataskait ą pareng ė: Valentina Dagien ė, Tolmantas Dagys, Viktoras Dagys, Egl ė Jasut ė, Tatjana Jevsikova, Gabriel ė Stupurien ė, Lina Vinikien ė. Redagavo Renata Valotkien ė. ĮVADAS 4 ATVIRO KODO PROGRAMINĖS ĮRANGOS ŠALTINI Ų ANALIZ Ė 9 1. Atviro kodo program ų naudojimo tendencij ų kaita 9 2. Užsienio šali ų patirtis 16 3. Atviro kodo program ų naudojimo Lietuvoje patirtis 24 4. Populiariausios atviro kodo programos 36 5. Atviro kodo program ų lokalizavimas 46 6. Atviro kodo programin ės įrangos saugumas ir jo užtikrinimo b ūdai 56 LIETUVOS VISUOMEN ĖS SLUOKSNI Ų NUOMONI Ų TYRIMAS 77 7. Ekspert ų strukt ūrizuoto interviu analiz ės rezultatai 78 8. Institucij ų internetin ė apklausa 104 9. Moksleivi ų ir student ų internetin ė apklausa 121 10. Interviu ir internetini ų apklaus ų rezultat ų apibendrinimas 128 BENDROSIOS IŠVADOS IR REKOMENDACIJOS 141 Šaltiniai 144 PRIEDAI 153 1 priedas. Populiariausios atviro kodo programos 153 2 priedas. Operacini ų sistem ų ir raštin ės paketo lokalizavimo užbaigtumas 163 3 priedas. Institucij ų internetin ės apklausos klausimynas 165 4 priedas. Moksleivi ų ir student ų internetin ės apklausos klausimynas 169 Įvadas Atvirosios, arba atviro kodo, programos tampa m ūsų kasdien naudojamais produktais, j ų sukuriama vis daugiau ir vis įvairesni ų. Labiausiai akcentuotina atviro kodo program ų savyb ė – aplink jas telkiasi bendruomen ės, vyksta bendradarbiavimas, generuojami nauji sprendimai, kurie skatina ir nuosavybini ų program ų tobul ėjim ą.
    [Show full text]